Why is my Triangle class not accepted?
Here are a few common mistakes when creating the
Triangle class and how to fix them:
- Forgetting to indent your code to be inside of the
class Trianglecode block – be sure to indent using 2 spaces per indentation level
- Not initializing the
self.variablevalues with the arguments passed to the
- Typos! Python has no way of knowing what you’re referring to unless you spell things exactly as they were spelled elsewhere, so keep a close eye on spelling, capitalization, and punctuation.