DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to find index of an element in list in python stackoverflow
ur_list = [1,8,14] ur_list.index(8) # returns 1
PREVIOUS
NEXT
Tagged:
#find
#index
#element
#list
#python
#stackoverflow
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit