Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing complex list members

Status
Not open for further replies.

twistedlogic

Technical User
Jan 10, 2002
35
AU
Hi all...

If you make a complex list (list of lists)such as....

myList = [[cat, 1],[dog, 2],[chicken, 3]]

how do you go about accessing the individual parts of the lists... ie if we want to access the first member of the second list (dog)?

thanks in advance

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top