Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Logic in Python Loop

why does it keep telling me it can't find all the Hellos?

After searching I'm sure this should be right although, I know I could still be wrong.

The issue I'm having is, it keeps saying it can't find all the hellos...

When I remade the helloS list it said i can't do that so I'm really confused as to what is wrong.

hellos = [
    "dobrý den",
    "hyvää päivää",
for hello in hellos:
    print("{} world".format(hellos))

1 Answer

.a{fill-rule:evenodd;}techdegree seal-36
Front End Web Development Techdegree Graduate 56,488 Points

Hi Alexander,

You're writing a loop that stores the items in hellos in a new variable called hello, when you later inside that loop want to use the data you're looping through, you want to use your hello variable as this is the one storing each hello. Does that make sense to you?

Good luck,


The moment you said about the new variable being hello opposed to hellos list i just face palmed! Edited too:

for hello in hellos:

print("{} world".format(hello))

Thank you for a fast easy to understand response!

Owe you one!