Python Introducing Lists Using Lists Continental

roger kuo
roger kuo
1,376 Points

how to do this

how do I code this?

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
for items in continents:
    print("* " + items)

1 Answer

Vincent Phatsima
Vincent Phatsima
11,889 Points

continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] for continent in continents: print ('*', continent) try that