Python

swati sharma
swati sharma
512 Points

Iteration

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

  • Asia
  • South America

continents = ['Asia','South America','North America','Africa','Europe','Antarctica','Australia'] If I use this==> for continent in continents : print(" * "+ continent) then output is

  • Asia
  • South America
  • North America
  • Africa
  • Europe
  • Antarctica *Australia

1 Answer

Philip Schultz
Philip Schultz
8,660 Points

Would this work? Is an asterisk ok?

for continent in continents:
     print("* {}".format(continent))