15. Class Basics


Oops, try again. Did you create a class with the name Triangle?

Can't understand whats wrong

class Triangle(object):
    def __init__(self, angle1, angle2, angle3):
        self.angle1 = angel1
        self.angle2 = angle2
        self.angle3 = angle3


HI this line

self.angle1 = angel1

you wrote angel1 instead of angle1 after the =


Yeah just a spelling error.


It's usually easier to see those typos in a real IDE since it should tell you that angel1 does not exist.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.