Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

min():-

        Python built in function min() returns the smallest of its parameters.

Example:-

def main():

    a=int(input(“Enter first number”))

    b=int(input(“Enter second number”))

    c=int(input(“Enter third number “))

    print(“Minimum number is “,min(a,b,c))

main()

Output

Enter first number40

Enter second number30

Enter third number 50

Minimum number is  30

error: Content is protected !!