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 Triangle code block – be sure to indent using 2 spaces per indentation level
Not initializing the self.variable values with the arguments passed to the __init__() method
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.
Here is my code for this exercise. The compiler throws an errror. It says Triangle() takes only one argument even though I’ve made it with three other arguments. I’ve checked previous code in the lesson, and formatted mine the same way. What is wrong?
Here is my code. Codecademy keeps saying something is wrong without saying the actual error is. Also there’s no solutions given. Please help me!
Thanks!