Python Introducing Lists Using Lists Continental

Grayson Rothchild
Grayson Rothchild
6,750 Points

Cant get task #2 to run
continents = [
    'South America',
    'North America',
# Your code here

for c in continents:
    print("* " + c)

if c[0] == "A":

2 Answers

Steven Parker
Steven Parker
177,726 Points

You coded a good conditional test, but the "if" line needs to be placed between the loop and the "print" statement that was already there. You won't need another "print" statement.

Fix that, and be sure to use proper indenting, and you should pass task 2.