Python Introducing Lists Using Lists Continental

Jareth Vasquez
Jareth Vasquez
1,744 Points

I think i broke it, please help

#please explain how this is broken...
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
for continent in continents:
    if continent[0] == 'A':
        print(continent)

#output: 
#Asia
#Africa
#Antarctica
#Australia

#Bummer: AssertionError: '* Asia' not found in 'Asia\nAfrica\nAntarctica\nAustralia' : Hmm...not finding the correct items in your output

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 50,933 Points

At the bottom of your code is the information you need to fix this: #Bummer: AssertionError: '* Asia' not found in 'Asia' Notice the message is telling you there is an asterisk and space missing before the continent name.

Jareth Vasquez
Jareth Vasquez
1,744 Points

please excuse my derp moment, thanks for the help