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 |