Answers for "index of word in list python"

1

how to get location of word in list in python

l = ['a','b','c']
print(l.index('b'))
----------------------------------
>1
Posted by: Guest on August-19-2020
6

get index of item in list

list.index(element, start, end)
Posted by: Guest on June-30-2020

Code answers related to "index of word in list python"

Python Answers by Framework

Browse Popular Code Answers by Language