hey @gaurangtandon help me out of this code...!?

class Triangle():
    def __init__(self, angle1, angle2, angle3):
        self.angle1 = angle1
        self.angle2 = angle2
        self.angle3 = angle3
    number_of_sides = 3
    def check_angles(self):
        if self.angle1+self.angle2+self.angle3 == 180:
            return True
            return False
my_triangle = Triangle(45, 45, 90)
print my_triangle.number_of_sides
print my_triangle.check_angles()

class Equilateral(Triangle):
    angle = 60
    def __init__(self):
        self.angle1 = self.angle
        self.angle2 = self.angle
        self.angle3 = self.angle


For this exercise, right? What error are you getting? I am able to successfully pass the exercise with that code.


hello @gaurangtandon see the error here..!


Oh, you are on 12/18 exercise. The code to be used on 12/18 is different what you've pasted (which is for the last exercise).
Kindly reset the exercise code ("Reset code" button at the bottom) and read the instructions carefully and attempt the exercise again.