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 trialJerry Avila
5,523 PointsHi, in Code challenge for iteration task one the error says it cannot find Asia in list. However it is in the output.
Hi, The error says that Asia is not found in the list but it is showing on the output. Not sure what I am missing. Thank you.
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
print("Continents")
for cont in continents:
print("*" + cont)
1 Answer
Steven Parker
231,275 PointsIt's looking for a specific combination of "bullet" (asterisk), space, and then name.
You need to put a space between the "bullet" and the name.
Jerry Avila
5,523 PointsJerry Avila
5,523 PointsThank you, that got it. Not sure why the space is needed, but will have to remember to have it there.
Steven Parker
231,275 PointsSteven Parker
231,275 PointsThe space isn't needed for the code to run, but to meet the requirements of the challenge.