Python Introducing Lists Using Lists Continental

Mohammad khan
Mohammad khan
572 Points

printing list as bullet points

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

import time for continent in continents: print (continent) time.sleep(0.5)

Trying to print continent as bullet list but unable to do so any idea?thanks

continents.py
continents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
# Your code here

2 Answers

Steven Parker
Steven Parker
140,485 Points

You won't need to import anything for this challenge, or to do any delays.

But when you print each item, be sure to combine it with an asterisk and a space to make it look like the example.

You can combine strings using the concatenation operator ("+"):

    print ("* " + continent)
Mohammad khan
Mohammad khan
572 Points

Hi steven

can you please share syntax as i am unable to achieve desired result. thanks

Steven Parker
Steven Parker
140,485 Points

OK, I added an example to my answer.