how to look fo ran item in a list in python

Solutions on MaxInterview for how to look fo ran item in a list in python by the best coders in the world

showing results for - "how to look fo ran item in a list in python"
Jody
03 Aug 2019
1l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
2index_of_4 = l.index(4)
3print(index_of_4)
4##output:
5## 3
similar questions