Class it Up


#1



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


Oops, try again. It looks like your Triangle class doesn't have a number_of_sides member variable.


it should work properly


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


#2

Check the spelling in your first line. :wink:


#3

I found my mistake. I had spelled Triangle wrong. Thanks for the help


#4

Thanks. So silly of me


#5

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