Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

find location of max value in python list

>>> m = max(a)
>>> [i for i, j in enumerate(a) if j == m]
[9, 12]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #location #max #python #list
ADD COMMENT
Topic
Name
6+2 =