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 Basic Object-Oriented Python Creating a Memory Game Class Review

This 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
MOD
Chris Freeman
Treehouse Moderator 68,457 Points

You 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 method fall
  • bad quotation marks