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 trialGustavo Guzmán
4,213 PointsThis code really prints out an error message, despite the fact that the logic, if isolated, would return a boolean
Here the codes starts with a sentence case 'Class' keyword. Then, the quotation marks for the argument 'Cedar' are wrong. The logic for the falling_leaves method makes sense, if considered isolated, in that if it set to False it'll be set to True and returned, but the whole code really brings back an error message if tried out as is in a Workspace. :(
1 Answer
Chris Freeman
Treehouse Moderator 68,457 PointsYou are absolutely correct! I will report the errors to Treehouse.
Confirming:
In the question on what will the code return: it should be raise an Error:
-
Class
not defined -
falling_leaves
not defined in methodfall
- bad quotation marks
Chris Freeman
Treehouse Moderator 68,457 PointsThis quiz has been corrected of the typos.
Chris Freeman
Treehouse Moderator 68,457 PointsChris Freeman
Treehouse Moderator 68,457 PointsFlagged as feedback for developers.