how to find max value in array python code example
Example 1: find max value in list python
mylist = [1, 7, 3, 12, 5]
min_value = min(mylist)
max_value = max(mylist)
Example 2: get biggest value in array python3
array = [1,2,3,100,4,5]
biggest = max(array)
print(biggest) # prints 100
Example 3: find location of max value in python list
>>> m = max(a)
>>> [i for i, j in enumerate(a) if j == m]
[9, 12]