A Day at the Supermarket help!


#1

Hello fellow programmers! My code is below and when I click save and submit, it tells me that 'Adam' hasn't been printed when 'Adam' shows up in the result box. Help please! Thanks!!


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

for item in names:
    print names


#2

This line will print the entire list. Try this instead:

    print item

#3

The goal is to print every element of the list called names. So, say to urself: "If I want to print every item in names, and I write, for every item in names, as i loop through the list, would it correct for me to say, 'print names', or would it be more correct to say print that item"? In other words, to say print names would just print the list. But you want to print the items in the list, and independently of one another, without the list format interfering. I hope this helps :slightly_smiling: