BeFOR we begin


Oops, try again. It looks like your code did not print "Adam".

Simply put, I can't wrap my head around the "for" loop. For some reason, I cannot understand this. Could someone try and explain it in a different way?

EDIT: Okay, now I have a different issue. And when this code is printed, Adam is clearly visible, however the website thinks it is not.

names = ["Adam","Alex","Mariah","Martine","Columbus"]
for item in [names]: 
    print item


And now I have solved it. I am sorry if time was taken.

for item in names:
print item

Had to remove square brackets.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.