Answers for "python find position of word in list"

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

Code answers related to "python find position of word in list"

Python Answers by Framework

Browse Popular Code Answers by Language