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 trialMasline Nyasha Petro
4,280 Pointsprint a bulleted list of each continent from the continents list output should look similar to :*Asia *South America
dont know what l am doing wrong this is my answer
print ("continents:") for continent in continents: print("*" +continent)
continents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
print ("continents:")
for continent in continents:
print("*"+continent)
2 Answers
Swayam Chidrawar
1,028 Pointscontinents = ['Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia']
for continent in continents:
print("* " + continent)
Megan L
2,905 Points*Note: for this exercise, it is quite buggy about the answers it will accept. It will even mark it as an error for something minor like indentation or spacing. *
for continent in continents:
print("* " + continent)
This is the correct answer and what has worked. There is a space after the asterisk.
for continent in continents: print("* " + continent)
`Correct Output shown on right side in test results: Output for continents.py
- Asia
- South America
- North America
- Africa
- Europe
- Antarctica
- Australia`
Masline Nyasha Petro
4,280 PointsMasline Nyasha Petro
4,280 PointsThanks