The purpose of this assignment statement is to create a class variable,
angle, therefore it should be moved to the line prior to the
__init__ method …
angle = 60
The above reflects the fact that in an equilateral triangle, all of the internal angles are 60°. Consistent with that, the
__init__ method needs to set all three of the instance variables that represent these angles to
60. The following three assignment statements within the
__init__ method accomplish that task …
self.angle1 = self.angle
self.angle2 = self.angle
self.angle3 = self.angle
In the above,
self.angle accesses the class variable that was assigned
60 in order to assign that value to the three instance variables.
Edited on October 19, 2018 to clarify the discussion of the values that were assigned to the variables.