It says that this code is correct, but I am unsure. Shouldn't I use self.angle1... in check_angles function, at least that's what others have done. They have also used only one argument under check_angles function and that is self. Why is that ok?
class Triangle(object): def __init__(self, angle1, angle2, angle3): angle1 = self.angle1 angle2 = self.angle2 angle3 = self.angle3 number_of_sides = 3 def check_angles(self,angle1, angle2, angle3): if angle1 + angle2 + angle3 == 180: return True else: return False