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'd like you to now only print continents that begin with the letter "A".

Ive looked back on the videos and I still don't how you are meant to find a "A" at the start of a string in a list.

1 Answer

When you have a string, you can get a specific character from that string by using string_name[index] where index is the index number. In this case, they are asking you to check at index=0, or the beginning of the string.

if my_string[0] == 'a':
    #add the rest of your code here

You want to have something like this within your for loop. I hope this helps