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

Nicolae Laurentiu
Nicolae Laurentiu
1,538 Points

Don't understand

I don't understand why the code doesn't run. for i in continents: if(i[0] == "A"): print(i)

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

3 Answers

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Your code runs just fine but you're not printing out a bulleted as the challenge requires.

To tell the forum that this question has been answered, please check the "Best Answer" button. (Also, it rewards the poster of the answer with +12 points)

edited

Nicolae Laurentiu
Nicolae Laurentiu
1,538 Points

Ok, thank you Alexander Davison