Find index of item in list

Sean Berry sean at buildingonline.com
Tue Dec 7 20:17:13 CET 2004


Given

myList = ['cat', 'dog', 'mouse' ... 'bear']

what is the easiest way to find out what index 'dog' is at?






More information about the Python-list mailing list