Python Introducing Lists Using Lists Continental

charles Bronson
charles Bronson
586 Points

Python for beginners. introducing lists. task 1

This code is good. Why there is an error. thanks

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

Your codeF here

print("Suggested gift: {}".format(continents[0]))

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

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your codeF here
print("Suggested gift: {}".format(continents[0]))

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

1 Answer

Steven Parker
Steven Parker
182,340 Points

The line showing "Suggested gift" is not part of the instructions, you can remove that line entirely.

Then in the final "print", there's two spaces instead of one after the "bullet".