Python Introducing Lists Using Lists Continental

I'm experiencing difficulty understanding why this error is showing up. It passes in the output window.

Any insights would be appreciated. The code works as expected in both my IDE and the output window of the challenge. It appears to run properly, with the exception of an assertion error: "Bummer: AssertionError: 7 != 9 : Please don't alter the continents list". I'm still fairly new to this, however I don't see any commands to alter the list. TH issue?

continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ]

Your code here

print("Continents:") for continents in continents: print("* " + continents)

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
print("Continents:")
for continents in continents:
    print("* " + continents)
Ran 1 test in 0.000s

OK
F.
======================================================================
FAIL: test_code_untouched (__main__.TestIterationExecution)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "", line 40, in test_code_untouched
AssertionError: 7 != 9 : Please don't alter the continents list

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,924 Points

You'll want to iterate with continent singular

print("Continents:")
for continent in continents:
    print("* " + continent)