Python Introducing Lists Using Lists Continental

continents.py

I'm not sure why I got an error on the second time the code was ran. I getting the correct output. Hmmmm....

Please help.

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

for continent in [0, 1]:
    print("*  " + continents[continent])

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,951 Points

You have two issues:

1) You are only printing the first two continents

2) You have an extra space between your bullet and the continent name

Thanks Kris!