Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Logic in Python Loop

traolach trewhella
PLUS
traolach trewhella
Courses Plus Student 835 Points

okay tree house i did this and i think its clear i did not pass anyone got tips (:

im pretty sure i simply got my values messed up thanks for any help i can get(:

loop.py
hellos = [
    "Hello",
    "Tungjatjeta",
    "Grüßgott",
    "Вiтаю",
    "dobrý den",
    "hyvää päivää",
    "你好",
    "早上好"
]
hellos = "hello"
hellos += "world":
  print("hello " + "world"

1 Answer

Stefan Vaziri
Stefan Vaziri
17,453 Points

For this problem, you need to use the "for" loop.

So you should solve it like this:

for hello in hellos:
    print(hello + " World")

make sure to have a space between the quote and World. Hope this helps!

[MOD: added ```python markdown formatting -cf]