Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
5+7 =