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

Introducing Lists Challenge

Not sure why this challenge is not accepting my code. The goal is to iterate through the list. I've attached an image of the error message + code output.

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]

for x in continents:
    print(" * ", x)
# Your code here

https://imgur.com/uoVqQhG

Thanks for any help.

1 Answer

Steven Parker
Steven Parker
231,198 Points

You don't need spaces around the "bullet" since the system adds one when you do multiple arguments.

If you were using concatenation instead, you'd need only the space after the "bullet".

Makes sense. Thanks!