16, Number of sides problem


#1



https://www.codecademy.com/courses/python-intermediate-en-WL8e4/3/2?curriculum_id=4f89dab3d788890003000096#

The interpreter is saying that I haven't defined number_of_sides, have I done something wrong? Should it be displayed a different way in classes?

I assumed that I'd done everything right and the interpreter just hates me.


class Triange(object):
    number_of_sides = 3
    def __init__(self, angle1, angle2, angle3):
        self.angle1 = angle1
        self.angle2 = angle2
        self.angle3 = angle3
        
    def check_angles(self):
        if self.angle1+self.angle2+self.angle3 == 180:
            return True
        else:
            return False


#2

HI try to refresh the page..


#3

The interpreter or codecademy?

What if you test for yourself. A Triangle instance should have number_of_sides as an attribute referring to 3, so you could create such an instance and look at that attribute name.


#4

Sorry guys, it's because I missed an 'l' out of Triangle.
Tired me obviously couldn't read or write, sorry for time wasting.