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 trialTichaona KUNDODYIWA
5,124 Pointshie good people please help where i am i getting wrong
at it was assertionError and now its inditationError
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
print ("continent :")
for continent in continents :
print ("*"+ continent)
1 Answer
KRIS NIKOLAISEN
54,972 PointsIndentation is very important in Python. For the 1st task it is straight forward. You don't need to indent your first two lines of code. When you do indent, according to python docs, you should indent 4 spaces. So try:
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
print ("continent :")
for continent in continents:
print ("* "+ continent)
Note: There should be a space between your bullet and the continent name.