min() and max() in Python
min() and max() in Python
with the help of max() function we can get maximum in list and with the help of min() function we can get minimum in list.
For Example :-
- list=[5,45,12,36,47,85]
- print(max(list))
- print(min(list))
min() and max() in Python
with the help of max() function we can get maximum in list and with the help of min() function we can get minimum in list.
For Example :-
- list=[5,45,12,36,47,85]
- print(max(list))
- print(min(list))
Comments
Post a Comment