Python Introducing Lists Using Lists Continental

Botshelo Tsogo Tiroyamodimo
Botshelo Tsogo Tiroyamodimo
3,055 Points

Receiving an Assertion error but my input and output are correct. Help

What did i do wrong in my for loop

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

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
53,693 Points

Using print with a comma adds a space so you have two spaces between the bullet and continent name. Remove the space and you should be good:

print('*', continent)