How to define a class named triangle which takes conditions


Problem

How to define a class named Triangle which takes 3 initialization conditions (angle1, angle2, angle3). The class has a method called equilateral that checks whether the triangle is equilateral or not as True and Flase. equilateral means all the sides having 60 degree angles. if the total is 180 but the side angles are not 60 degrees equally, then we get "Not equilateral but angles total to 180." Otherwise, False. You can create an object a and out different values and that way you can check the method output using a.equilateral().

Request for Solution File

Ask an Expert for Answer!!
Python Programming: How to define a class named triangle which takes conditions
Reference No:- TGS03268231

Expected delivery within 24 Hours