Accessing items in sublists : Index : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Index »

 

Accessing items in sublists


numList = [2000200320052006]
stringList = ["A""B""C"]
mixedList = [12"three"4]
subList = ["Python""Phrasebook"["Copyright",2006]]
listList = [numList, stringList, mixedList, subList]

if isinstance(subList, list):
    print subList[2][0]



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Index