I do not understand why my code is not working. I suspect it is because of me not creating an "instance".
Below is my code.
number_of_sides = 3
def init(self, angle1, angle2, angle3):
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
if self.angle1 + self.angle2 + self.angle3 == 180:
And the console returns this error:
Oops, try again. Did you create an instance of Triangle called my_triangle?
someone please help!