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

William Shaylor
William Shaylor
3,014 Points

I'm just getting an error: I know my code is correct.

I know my code is correct, even if I submit nothing I still get this error.

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

1 Answer

Heidi Fryzell
seal-mask
MOD
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 25,178 Points

Hi William,

This is very strange I literally pasted your code into the challenge and it passed the 1st task.

Maybe try deleting all the code on task 1 and pasting it in there from your question above. That is what I did and it passed task 1.

This passed:

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

I hope this works and Happy Coding!