16, Number of sides problem



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
            return False


HI try to refresh the page..


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.


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