Member index in toples

A.M alanalan at newsgroup.nospam
Thu Jun 1 14:00:42 EDT 2006


Hi,



I have a tuple like this:



T = ("One","Two","Three","Four")



Is there any built-in way to find what is the index of "Two" withouot 
looping within the tuple?



Is the same feature available for lists or dictionaries?



Thank you,

Alan





More information about the Python-list mailing list