Python Introducing Lists Using Lists Continental

Maher Wardak
Maher Wardak
1,878 Points

for loops

whats wrong with my code?

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
for continent in continents:
    print(continent)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,714 Points

You get an assertion error that begins with:

AssertionError: '* Asia' not found in 'Asia

The challenge is looking for a bulleted list so for each continent you need the print an asterisk followed by a space then the continent.