Iterating by Sequence Item : loop through « List « Python Tutorial






nameList = ['A', "B", 'C', 'D']
for eachName in nameList:
     print eachName, "Lim"








7.16.loop through
7.16.1.Iterating by Sequence Item
7.16.2.Iterating by Sequence Index
7.16.3.Appending items to a list.