Welcome to the Treehouse Community
Looking to learn something new?
David Lopes827 Points
Not sure what i'm doing wrong
Not sure what I did wrong, it says that all the hellos does not show, but when I check preview it does show all of them
hellos = [ "Hello", "Tungjatjeta", "Grüßgott", "Вiтаю", "dobrý den", "hyvää päivää", "你好", "早上好" ] for hellos in hellos: print(hellos + "world")
Jason AndersTreehouse Moderator 145,624 Points
You are really close. You just need to specify a different variable for use in the loop iteration. Right now you are using the same name as the dictionary. The general rule is to use the singular version for the temporary variable being used for the loop. So, in this case, you would use
Also, you will need to add a space in the "world" string so it looks like " world". This is so there will be a space between the the "Hello World"s.
Have a look at the completed code below and see if it makes sense.
hellos = [ "Hello", "Tungjatjeta", "Grüßgott", "Вiтаю", "dobrý den", "hyvää päivää", "你好", "早上好" ] for hello in hellos: print(hello + " world")
Keep Coding! :)