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 trialMohammad khan
572 Pointsprinting 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 = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
# Your code here
2 Answers
Steven Parker
231,248 PointsYou 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
572 PointsHi steven
can you please share syntax as i am unable to achieve desired result. thanks
Steven Parker
231,248 PointsOK, I added an example to my answer.