Learn
Let’s go ahead and create an instance of our Triangle
class.
Instructions
1.
Create a variable named my_triangle
and set it equal to a new instance of your Triangle
class. Pass it three angles that sum to 180 (e.g. 90, 30, 60).
Print out my_triangle.number_of_sides
Print out my_triangle.check_angles()
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.