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

how to solve this one its little tricky

i tried but i was unable to solve this one.

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

1 Answer

Steven Parker
Steven Parker
230,995 Points

:point_right: The challenge instructions give you a clue...

The challenge begins with: *"I need you to write a for loop ...", but you haven't done that yet. Also, you can't create a loop just by adding a colon to an assignment.

If you're unsure of how to create a for loop, you might want to review the video: Around and Around. The video begins with an example of doing a very similar thing with names as what is needed in this challenge for "hellos".