Python Introducing Lists Using Lists Continental

Muttalip Aydemir
Muttalip Aydemir
Python Development Techdegree Student 3,387 Points

list iteration

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

Your code here

for continent in continents: print("* ", continent)

it says 'Asia' is not in the iteration. What am I doing wrong here?

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

1 Answer

Steven Parker
Steven Parker
201,957 Points

Printing two arguments (with a comma) adds a space, so having one with the asterisk causes too much space.

Now if you were concatenating instead (with "+"), you would need that space.