Question: Python programming: Exercise X . Follow the steps: Create a class, Triangle. Its _ - ( ) method should take self, angle 1 , angle

Python programming:
Exercise X. Follow the steps:
Create a class, Triangle. Its _-() method should take self, angle1,
angle2, and angle3 as arguments. Make sure to set these appropriately
in the body of the () method.
Create a variable named number_of_sides and set it equal to 3.
Create a method named check_angles. The sum of a triangle's three
angles is It should return True if the sum of self . angle1, self . angle2,
and self.angle3 is equal 180, and False otherwise.
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 and print out my_triangle.check_angles().
Python programming: Exercise X . Follow the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!