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