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 trialEmily Sue
1,769 Pointsstuck on challenge 2 of continents
I'm not sure what i'm missing in this 2nd part of the challenge or what's wrong
continents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
# Your code here
print("continents")
for continent in continents:
print("* " + continent)
for continent in continents:
if continent[0] == "A":
print("* " + continent)
3 Answers
Steven Parker
231,271 PointsI can see how the "add to the previous code" rule may have caused some confusion.
In this case, they want you to modify how the loop works, not create another loop.
But you may want to report this to the Support folks, they may be able to clarify the instructions for future students (and you might get an "Exterminator" badge ).
Grant Barnhart
1,811 PointsI'm having the same problem, no matter what I try, it won't work.
Steven Parker
231,271 PointsStart a fresh question where you can show your code and perhaps someone can help.
Grant Barnhart
1,811 PointsOnce I got rid of the first bit of code and just had the second loop in there it worked out just fine. It was very frustrating how unclear the instructions were.