19. Inheritance syntax


#1

I have no idea what I am doing wrong. Python says"Did you create a class called Triangle?"

class Shape(object):
"""Makes shapes!"""
def init(self, number_of_sides):
self.number_of_sides = number_of_sides

Add your Triangle class below!

class Triangle(Shape):
def init(self, side1, side2, side3):
self.side1 = side1
self.side2 = side2
side.side3 = side3


#2

This will throw an exception. Change to self like the previous two.


#3

I didnt spot my mistake >_<. Thanks you.