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 trialDarrin Fagley
12,432 PointsI cannot figure out why this code is not passing here for task two.
I checked this code in VS Code Editor and it worked fine I also tried the following solution as well just for fun and it still didn't pass: for continent in continents: if continent[0] == 'A': print(continent)
Again this workd in VS Code but not in the challenge
continents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
# Your code here
for continent in continents:
print('* ' + continent)
for continent in continents:
if 'A' in continent[0]:
print(continent)
1 Answer
Steven Parker
231,269 PointsThe challenge wants you to change the program to print out just certain items. It's not expecting to see the whole list and the filtered list.
Also, be sure you're still using the same format for the output to create a "bulleted" list.
Darrin Fagley
12,432 PointsDarrin Fagley
12,432 PointsThat worked thank you