how to get location of word in list in python

Solutions on MaxInterview for how to get location of word in list in python by the best coders in the world

showing results for - "how to get location of word in list in python"
Kera
26 Jan 2018
1l = ['a','b','c']
2print(l.index('b'))
3----------------------------------
4>1