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

Joao Almeida
Joao Almeida
45 Points

Completely lost on the "Continental" challenge in the Python Track. I can't solve it even with the hint

How do we get to solve it and what taught process do we use. I've search for indexes and everything and I end up always short. Can someone just give me a small run down of what to do and why? Thank you

It helps if you give us your code so we know what you're stuck on.... would rather not just give you the answer and help you learn it for yourself.

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

In the Continents Challenge you are asked to Print a bulleted list of each continent from the continents list. Output should look similar to:

* Asia
* South America

Given the continents is a list of strings, the process would be:

  • loop over the list using format for name in some_list:
  • print each name preceded by a "*". You can use simple + string concatenation, or a formated string

For part 2, you'll need to check if the first character is an "A". You can test for this using if name[0] == 'A':

Post back if you still need more help. Good luck!