1/13 It won't work!


This is the code that I am currently using however, it won't work.

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

Please can anyone help me, it will be kindly appreciated.


Hello @12rajalara,

I think you're overthinking it, usually when I work with for loops like this one for name in names: I say in my head "For each name in names" This make the for loop easier to understand.
Anyway.. I think you kinda misunderstood the instructions, your code is supposed to look like this:

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

for name in names:
    print name

Your print names need to be changed to print name.
Good luck in future programming, remember, never give up! You'll learn it sooner or later if you keep trying :smile:


Hello @bungicasse

Thank you for your help, it was very much appreciated. You are probably right that I am over thinking it so thanks. Your strategy is so much simpler, so once again thank you lol!

Hopefully I'll understand how to program soon!
Thank you once again xx