Answers for "how to find an item in an array in python"

6

how to find an item in an array in python

array = ['hello','people','i','want','icecream']
print(x.index('people'))
-> 1
Posted by: Guest on January-17-2021

Code answers related to "how to find an item in an array in python"

Python Answers by Framework

Browse Popular Code Answers by Language