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 trialTEDI YUDI PERMADI
3,051 PointsPrint a bulleted list of each continent from the continents list. Output should look similar to:
How do i solve this
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
print("* " + continent)
print(“* “ + continent)
1 Answer
Steven Parker
231,269 PointsYou'll only need one "print" statement. Also, your second one seems to have a fancy quote mark instead of the standard ones used in programming (the first one is OK).
Also, your print statement is referring to "continent" (singular) which has not been defined yet. Perhaps you were thinking of using that as a loop variable, which would be a good name choice. But you still need to create the loop itself to control the "print" process.
TEDI YUDI PERMADI
3,051 PointsTEDI YUDI PERMADI
3,051 Pointsthanks you