Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by java2blog.com #
 
PREVIOUS NEXT
Tagged: #python #index #max #list
ADD COMMENT
Topic
Name
1+3 =