Search
 
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
Name
8+5 =