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 |