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 trialNicolae Laurentiu
1,538 PointsDon't understand
I don't understand why the code doesn't run. for i in continents: if(i[0] == "A"): print(i)
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
19,870 PointsYour code runs just fine but you're not printing out a bulleted as the challenge requires.
Nicolae Laurentiu
1,538 PointsOh, thank you Dave
Alexander Davison
65,469 PointsTo 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
1,538 PointsOk, thank you Alexander Davison