list get max code example
Example 1: max int in a python list
>>> L=[2,-7,3,3,6,2,5]
>>> max(L)
6
Example 2: find max value in list python
mylist = [1, 7, 3, 12, 5]
min_value = min(mylist)
max_value = max(mylist)
>>> L=[2,-7,3,3,6,2,5]
>>> max(L)
6
mylist = [1, 7, 3, 12, 5]
min_value = min(mylist)
max_value = max(mylist)