newbie: find position of item in a list

Alexander Eisenhuth stacom at stacom-software.de
Wed Oct 2 10:24:52 EDT 2002


Hallo Again,

i wonder weather there is no expression of finding the position of a element is a list like:

l = ['a', 'b', 'c', 'd', 'e']

l.find('b')
  >> 1

Have I overseen something in the documentation to python ?

Tanks a lot
Alexander





More information about the Python-list mailing list