how to get maximum value from list in python code example Example: max in a list python li=[0,70,7,89] max(li) #gives the max value 89