I have a problem with compilation in this exercise.
The code is
class Triangle(object): number_of_sides = 3 def __init__(self,angle1, angle2, angle3): Triangle.self = self Triangle.angle1 = angle1 Triangle.angle2 = angle2 Triangle.angle3 = angle3 def check_angles(self): if self.angle1 + self.angle2 + self.angle3 == 180: return True else: return False
And the error:
Oops, try again. It looks like your check_angles method doesn't return True for valid triangle angle values.
I have no idea what I am doing wrong. I've even copied the same code from the hint, but nothing have changed.