Tuple index

Steve M steve at myplace.com
Sun Feb 20 20:04:00 EST 2005


Hello,

        I'm trying to figure out the index position of a tuple member. 
I know the member name, but I need to know the members index position. I
know that if I use the statement print tuple[4] that it will print the
contents of that location. What I don't understand is if I know that foo is
a member of tuple, how do I get foo's index position.
Thanks-in-Advance
Steve



More information about the Python-list mailing list