How to find the index of an item given a list containing it in Python?
Answers
Answered by
0
what is the meaning python
Answered by
0
Answer:
L.index(element)
Explanation:
if L is a list such that L = [1,2,3,4,5,6,7,8]
to find the index of the number for example 5 we use the code
L.index(5)
Similar questions