DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python search list by value
[1,2,3].index(2) # => 1 [1,2,3].index(4) # => ValueError
Source by www.py4e.com #
PREVIOUS
NEXT
Tagged:
#python
#search
#list
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit