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 Introducing Lists Using Lists Continental

Hi, in Code challenge for iteration task one the error says it cannot find Asia in list. However it is in the output.

Hi, The error says that Asia is not found in the list but it is showing on the output. Not sure what I am missing. Thank you.

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
print("Continents")
for cont in continents:
    print("*" + cont)

1 Answer

Steven Parker
Steven Parker
231,248 Points

It's looking for a specific combination of "bullet" (asterisk), space, and then name.

You need to put a space between the "bullet" and the name.

Thank you, that got it. Not sure why the space is needed, but will have to remember to have it there.

Steven Parker
Steven Parker
231,248 Points

The space isn't needed for the code to run, but to meet the requirements of the challenge.