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

cant get this correct and indentation error, where

why do we say for continent in continents, how does py know singular and plural?

also could you help with the indentation error pl?

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

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

2 Answers

ok, position of the letters get that, but we haven't done arrays yet

Python doesn't know the singular and plural for continent but humans do. The variable name could be almost anything. For the second part of the challenge you'll want to check that the continent begins with A. For this you can treat continent like an array where the position of individual letters are accessed by an index ex: continent[i]

I get what you mean "Kris", well noted