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

For Hellos, the non english language cannot be printed out in right format. It gave me results like below

For Hellos, the non english language cannot be printed out in right format. It gave me results like below

Hello World Tungjatjeta World Grüßgott World Ð’iтаю World dobrý den World hyvää päivää World ä½ å¥½ World 早上好 World

Does anyone know how to fix this? Thanks!

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

2 Answers

Afloarei Andrei
Afloarei Andrei
5,163 Points

You have to do one more thing. red again the challenge. ".......in hellos and prints each word PLUS the word "World". So, for example......"

Afloarei Andrei
Afloarei Andrei
5,163 Points

You have to do one small thing... is what i meant, not one more. :p

Thank you for your comment, but i'm afraid i don't understand you. In my code, it has already added " World" in each print. What do you mean for reading again the challenge?

Afloarei Andrei
Afloarei Andrei
5,163 Points

I'm sorry I didn't make myself clear. :p Change the "print(word," World")" with "print(word + " World")"