Question
How should I indent the code to create my_triangle?
Answer
If you’re sure you’ve written the rest of your class code correctly and are receiving an error when you Run your code, it may be an issue with how you indent the lines where you created your my_triangle
object and print
ed the number_of_sides
and the result of calling check_angles()
.
Be sure that these last three lines of code are not indented at all, otherwise they will be inside of your class and will not run when your code is executed.