15. Class Basics


#1


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


#2

HI this line

self.angle1 = angel1

you wrote angel1 instead of angle1 after the =


#3

Yeah just a spelling error.


#4

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


#5

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