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

arielp
arielp
3,516 Points

continents

this is getting really frustrating. I can run this code on my text editor and an IDE also and it runs fine:

continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia' ]

for continent in continents: if continent[0] == "A": print(continent)

but for some reason, the online interpreter is not happy with it??

1 Answer

arielp
arielp
3,516 Points

omg my text is all over the place again.... nevermind