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

james mchugh
james mchugh
6,234 Points

task 1 and 2 ask me to print 2 things.

task 1 and 2 ask me to print 2 things different things. task 1 works fine by itself, but task 2 only wants one continent printed to the screen so task 1 is conflicting with task 2. You can only have all continents or continents that start with an A

continents.py
continents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
print("Continents:")
for continent in continents:
    print("* " + continent)

    print(0)

1 Answer

This challenge is a little different in that the code you write on step 2 doesn't have to meet the requirements of step 1.

Just include the code that will make step 2 pass - you might try an if statement inside your loop that checks if the continent begins with an a, and if it does, execute the print function.