max of list by python code example
Example 1: max of list with index
a.index(max(a))
Example 2: python index max list
number_list = [1, 2, 3]
max_value = max(number_list)
# Return the max value of the list
max_index = number_list.index(max_value)
# Find the index of the max value
print(max_index)