Answers for "how to look fo ran item in a list in python"

0

how to look fo ran item in a list in python

l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
index_of_4 = l.index(4)
print(index_of_4)
##output:
## 3
Posted by: Guest on June-30-2021

Code answers related to "how to look fo ran item in a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language