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 trial

Python Introducing Lists Using Lists Continental

Continents mini challenge question

Hi. I think i'm loosing my mind.

In the example, i'm being asked to add a asterisk to each element in the continents list. We literally just did this same thing and now i'm getting an error:

Your code here

for continent in continents: print ("*" + continents)

This makes zero sense to me. Can anyone assist with what is happening here?

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
for continent in continents:
    print ("*" + continent)

2 Answers

Rick Gleitz
Rick Gleitz
47,876 Points

You're gonna kick yourself! The challenge wants the output to look like "* Asia", Yours looks like "*Asia". So you don't just add an asterisk, it needs to have an asterisk and a space. Yikes, huh? Hope this helps. Keep it up!

Rick, you beautiful man. Thank you so much. I come from a C# background where spacing is irrelevant so i've struggled with that notion here. THANK YOU THANK YOU THANK YOU and have an excellent day!