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!

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

Once again my code checks out just fine directly via my terminal, but does NOT pass your test. What is the deal here?

I feel my code is right, it checks out in my terminal but does NOT here within the exercise.

Feels like you expect me to code it a certain way, otherwise the test results in a "Bummer"

hellos = [
    "dobrý den",
    "hyvää päivää",

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

2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,854 Points

Hey Ilya,

You're really close. You just need to enclose everything for the print method in parentheses.

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

Good Job :)

Keep Coding! :dizzy:

Thank you, Jason. That worked out perfectly :)