Find index of item in list

Sean Berry sean at buildingonline.com
Tue Dec 7 14:17:13 EST 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