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

bad question criteria feedback

I answered this question to print "Hello World" with "world" in many languages, and my answer would print the space. This answer said "Bummer!" while no space, i.e. "HelloWorld" was correct. Shouldn't it be the other way?

1 Answer

jonlunsford
jonlunsford
15,480 Points

Haley:

I added the space in my print statement and I passed the challenge. For example,

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

I did not try it without the space. Does this answer your question?

Interesting. That was my answer, except I had "hello" instead of "greet" and I had to remove the space. Thanks for answering. I thought I was leaving a message for admin.