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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Daron Anderson](https://secure.gravatar.com/avatar/e892fe75204464a5c08c09e9c3f89735?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Daron Anderson
2,567 PointsNeed insight on how to Print out all the continents that start with an 'A'. the square brackets & parens. confuse me.
"There has to be one and only one obvious way to solve it" Thanks in Advance!!!
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
for continent in continents:
print ("* " + continent)
4 Answers
![KRIS NIKOLAISEN](https://secure.gravatar.com/avatar/65d74a723997b41a80d2d909c6e06960?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
KRIS NIKOLAISEN
54,969 PointsThere is more than one way to do it. You could try startswith() as explained here
![Unsubscribed User](https://secure.gravatar.com/avatar/0eb5c79355729b95709315de385edc87?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Unsubscribed User
Front End Web Development Techdegree Student 33,900 PointsHi Daron,
you need to use an IF statement before the print command in this second task of the challenge.
So... IF the first letter of the word is equal to "A" then - next line - print etc.
To check the first letter you need to index the first letter of the string.
Does that help a bit? Otherwhise I could write more tomorrow, need to go to bed now...
Happy coding!
Nils
![Daron Anderson](https://secure.gravatar.com/avatar/e892fe75204464a5c08c09e9c3f89735?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Daron Anderson
2,567 Points@Nils Kriedner Where does it ask for the if staement?
![Unsubscribed User](https://secure.gravatar.com/avatar/0eb5c79355729b95709315de385edc87?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Unsubscribed User
Front End Web Development Techdegree Student 33,900 PointsHI Daron,
just checked where I saw it and I can't find it.
Either I was halluzinating ;-) or I mixed it up with some other challenge (which is highly likely).
So sorry about claiming something without checking it up again. I was so sure I had read it in that challenges text.
Anyhow, you can definetely solve the challenge with an if statement, that's for sure. I just checked it.
Could you solve it in the meanwhile?
Nils
![Daron Anderson](https://secure.gravatar.com/avatar/e892fe75204464a5c08c09e9c3f89735?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Daron Anderson
2,567 PointsNils Kriedner I feel it I mix my syntax up with other languages sometimes.
Unsubscribed User
Front End Web Development Techdegree Student 33,900 PointsUnsubscribed User
Front End Web Development Techdegree Student 33,900 PointsHave not tried it in the code challenge but very probably would not work because the challenge explicitly asks for an if-statement + the course teaches accessing the letters in a string with the [].
Daron Anderson
2,567 PointsDaron Anderson
2,567 PointsI love the design of your website. @kris Nikolaisen. Is your methodology, "If it works it works?"