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 :-

  1. list=[5,45,12,36,47,85] 
  2. print(max(list)) 
  3. print(min(list)) 

Comments

Popular posts from this blog

Proassignmenthelp index 27

check whether the given input is alphabet, number or alphanumeric in python

Programmingshark index 19