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

max():-

        Python built-in function max() returns the largest 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(“Largest number is “,max(a,b,c))

main()

Output

Enter first number10

Enter second number50

Enter third number 40

Largest number is  50

 

error: Content is protected !!