Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

position in list python

animals = ['cat', 'dog', 'rabbit', 'horse']
index = animals.index('dog')
print(index) #Output => 1
 
PREVIOUS NEXT
Tagged: #position #list #python
ADD COMMENT
Topic
Name
9+6 =