Python Introducing Lists Using Lists Continental

Sean Flanagan
Sean Flanagan
33,218 Points

Continental: Task 2

Hi.

I based my answer on this:

https://stackoverflow.com/questions/51573309/print-words-starts-from-a-particular-letter-in-python

and got an AssertionError.

Am I getting ahead of myself on this one?

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

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 44,772 Points

That'll work but you'll want to print a bulleted list. You are just printing the continent.

Sean Flanagan
Sean Flanagan
33,218 Points

Well, I knew that a bulleted list was required for Task 1. I didn't realise Task 2 required a bulleted list too.

Thank you.