- 1

python list

how do u do this ........The index method finds the first occurrence of a list item and returns its index. If the item isn't in the list, it raises a ValueError.

20th Mar 2017, 3:19 PM
unjel masters
unjel masters - avatar
1 Answer
+ 1
your_list.index(your_list_item)
20th Mar 2017, 4:43 PM
Martian1oh1
Martian1oh1 - avatar