how to find maximum value in python code example
Example 1: max in a list python
li=[0,70,7,89]
max(li)
#gives the max value 89
Example 2: python max()
i = max(2, 4, 6, 3)
print(i)
# Result will be 6 because it is the highest number
li=[0,70,7,89]
max(li)
#gives the max value 89
i = max(2, 4, 6, 3)
print(i)
# Result will be 6 because it is the highest number