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

Anyone know why this isn't right? I've ran it in Sublime Text and it works there.

Really stuck on why this doesn't get checked as correct since it works when i run the code. Would appreciate any help :)

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

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

HI Kevin,

The instructions from Task #1 explicitly state: "Print a bulleted list of each continent from the continents list.", but you're just printing the list... I'm assuming it had to have been there for you to pass the first task. Once you have the * spaced before each continent, your code does pass the Challenge.

Keep up the great Coding! :) :dizzy:

Ohhhhh, don't know how i missed that. Appreciate the quick help!