DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get index of all element in list python
indices
=
[
i
for
i
,
x
in
enumerate
(
my_list
)
if
x
==
"whatever"
]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#index
#element
#list
#python
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit