Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find an item in an array in python

array = ['hello','people','i','want','icecream']
print(x.index('people'))
-> 1
 
PREVIOUS NEXT
Tagged: #find #item #array #python
ADD COMMENT
Topic
Name
1+4 =