Sean Frye1,166 Points
Shoot! This is harder than I thought.
I believe I could get this down if I spent more time practicing and taking these courses so I could remember everything, but still, something seems different about this question than what I saw on the video itself.
I understand the coding I am supposed to type, I just don't know how to get the word "World" in there to make it say "Hello World"
hellos = [ "Hello", "Tungjatjeta", "Grüßgott", "Вiтаю", "dobrý den", "hyvää päivää", "你好", "早上好" ] for hello in hellos: if hellos == "Tungjatjeta": break print(hellos."World")
for hello in hellos:
print("%s World" %hello)
hellos is the array with all elements, and you are iterating through it, with hello being the the single elements for each iteration. And don't forget formatting, python is very strict there.
Hoessein AbdPython Web Development Techdegree Student 13,017 Points
I think you misinterpreted the question a tiny bit. The list "Hello's has several 'hello' items in it in different languages. Kenneth is asking you to add the word 'World' to each item in 'Hello's.
So this should be printed.
"Hello World" "Tungjatjeta World" "Grüßgott World" "Вiтаю World" "dobrý den World" "hyvää päivää World" "你好 World " "早上好 World"