Python Introducing Lists Using Lists Continental

Zach Janssen
Zach Janssen
1,651 Points

Why is this not working?? It's displaying all the continents that begin with the letter "A" ??

Needing an explanation on what I'm doing wrong.. The output is showing all the continents that begin with the letter "A". Thanks in advance

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

# Your code here

1 Answer

Steven Parker
Steven Parker
176,634 Points

The instructions ask you to "Print a bulleted list of each continent ..."

Your output has the right continents, but they are missing the "bullet" (asterisk).