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, angle
angle and angle as arguments. Make sure to set these appropriately
in the body of the method.
Create a variable named numberofsides and set it equal to
Create a method named checkangles. The sum of a triangle's three
angles is It should return True if the sum of self angle self angle
and self.angle is equal and False otherwise.
Create a variable named mytriangle and set it equal to a new instance
of your Triangle class. Pass it three angles that sum to eg
Print out mytriangle.numberofsides and print out mytriangle.checkangles
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
