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