Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
229,732 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
229,732 Points

OK, I added an example to my answer.