A day at super market


#1

names = ["Adam","Alex","Mariah","Martine","Columbus"]

for list in names:
print names

it prints following but error says it didnot print " adam" although it did. infact 5 times. besides why did my code print everything 5 times?
['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus']
['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus']
['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus']
['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus']
['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus']
None


#2

Hi put It like that print list instead of
print names


#3

The for loop goes through names five times because there are five items in the names list. Each time, you're telling it to print the entire contents of the names list. What you want is to print each item. So you want to print list so that you print each list item as you loops through the set of them.