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

Can somebody tell me where is my mistake?

I can not pass this challenge, somebody can help?

continents = [
    'South America',
    'North America',

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

2 Answers

Mark Ryan
.a{fill-rule:evenodd;}techdegree seal-36
Mark Ryan
Python Web Development Techdegree Graduate 28,648 Points

Hi, Victor!

You're very close! You've got an extra space and a missing space. There are a few ways to make this pass.

for continent in continents:
    print('*', continent)

or with concatenation (note the space in '* ')

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

or if you want to get fancy, string literals (f-strings)

for continent in continents:
    print(f'* {continent}')

Hope this helps!

Wow, I was close to do it. Thank you Mark, very good answer.