Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

maximum and index of a list pythopn

>>> m = max(a)
>>> [i for i, j in enumerate(a) if j == m]
[9, 12]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #maximum #index #list #pythopn
ADD COMMENT
Topic
Name
1+5 =