DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit