Python Introducing Lists Using Lists Continental

Print a bulleted list of each continent from the continents list. Output should look similar to:

How do i solve this

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

1 Answer

Steven Parker
Steven Parker
177,931 Points

You'll only need one "print" statement. Also, your second one seems to have a fancy quote mark instead of the standard ones used in programming (the first one is OK).

Also, your print statement is referring to "continent" (singular) which has not been defined yet. Perhaps you were thinking of using that as a loop variable, which would be a good name choice. But you still need to create the loop itself to control the "print" process.

thanks you