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 trialAdrian Trevino
1,429 PointsNot a question rather Feedback and Answer
In Task 2 of Code Challenge: Continental
It would be better to add the following to the instructions of task 2:
Print Continents with letter "A" only AND use an Asterisk (*) in front of each continent.
When actually using the first snippet of code, the answer is technically right but it throws the user into an infinite error. For people who might be a bit newer, it might be frustrating. A little direction would go a long way!
(I know the first task's code is okay to leave in there, just deleted it to clean up the picture)
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
#technically correct code
for continent in continents:
if continent[0] == 'A':
print(continent)
#acceptable code
for continent in continents:
if continent[0] == 'A':
print("* " + continent)
1 Answer
Steven Parker
231,269 PointsThe challenge says "*Output should look similar to.... *" and shows an example with the asterisks. So part of the the challenge is looking at the example and figuring out how to code it to create the correct result.
boi
14,242 Pointsboi
14,242 PointsMaybe you might be correct, but what happens when you get a client that wants ideas that are too abstract, according to me it's a good practice of the brain to figure some things out by yourself. just my opinion or feedback.