Python Introducing Lists Using Lists Continental

Ryan Baeschlin
Ryan Baeschlin
2,261 Points

This code prints the correct values but when i click check work it says it is wrong. Can someone help please?

This is only printing the continents that start with A so I am not sure what I did wrong.

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

for continent in continents:
    if continent[0].lower() == 'a':
        print(continent)

1 Answer

Ryan Baeschlin
Ryan Baeschlin
2,261 Points

Ah, that worked. The second challenge doesn't actually ask for the bullets so I didn't put them in. Thanks!