Class it Up


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):
    number_of_sides = 3
    def check_angles(self):
        if self.angle1+self.angle2+self.angel3==180:
            return True
            return False


Check the spelling in your first line. :wink:


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


Thanks. So silly of me


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