Python Introducing Lists Using Lists Continental

Sean McVeigh
Sean McVeigh
616 Points

continential

the following code is what I have entered...

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

this is what follows..

AssertionError: 7 != 9 : Please don't alter the continents list

I'm not sure what this means, anyone help? thanks in advance

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

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

1 Answer

Daniel Medina
Daniel Medina
13,851 Points

Hello Sean,

You are pretty close with what you have.

You have a typo at the start of your for loop. It needs to say continent, not continents.