Python Introducing Lists Using Lists Continental

livia salgado
livia salgado
4,118 Points

i've try everything but it seems that the instructions are making run all the names and that includes names without A

it says assertion error

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]

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

for continent in continents:
    if continent[0] == "A": print("* " + continent)   

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 44,069 Points

There should only be one for loop in each task. Remove the first for loop and the second task will be ok.