Newbie question on tuples

Thomas Philips tkpmep at hotmail.com
Thu Feb 5 16:09:46 EST 2004


How does one find the position of an item in a tuple. i.e. If the
tuple is ("rock", "scissors", "paper"), what function (or method) do I
call with "rock" to get 0 or with "paper" to get 2?

Thomas Philips



More information about the Python-list mailing list