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

Continental task bug?

This is less of a question and more of me maybe pointing out a bug or something that wasn't accounted for in the first part of the task but it seems like using a comma to print out the result isn't accepted as a valid answer when it outputs the correct answer. It looks like it only accepts the add operator.

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

2 Answers

Steven Parker
Steven Parker
243,253 Points

The comma will also work, but in that case the system puts a space between the arguments so you don't need one in the string with the asterisk (and having it there causes too much space).

Oh duh! It's the extra space. That makes sense-- thank you!