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