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

I keep getting "Asia" is not part of the list. What and Why I'm getting it wrong?

I've have made a for in loop, to reference the continents list. I've also made a print method within the for in loop such as 'print("*"+continent)'. And even though I'm printing the everything in bullet points as the excersise says, I keep getting this "AssertionError: "Asia" is not found in \n *Asia\n*South America\n*North America", etc. What do I need to do to fix this? Any help would be appreciated.

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here

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

1 Answer

Hi Luke

You are missing a space here after the asterisk:

print("*"+continent)

Add the space and you should pass the challenge just fine!

Thanks! Weirdly enough, I was looking at other answers to see if I had the same question asked, and it was the case.