Python Introducing Lists Using Lists Continental

Chul Kim
Chul Kim
2,341 Points

Why is the challenge not accepting my output?

I only see the four continents that begin with "A" which is what the output is. What went wrong?

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

1 Answer

Chul Kim
Chul Kim
2,341 Points

It was the missing "*" ...