18/18 Nothing works!


#1



https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-je5q0/3/4?curriculum_id=5370f030fed2a866a2000001#


Same as the precedent exercise.
I don't see what is wrong.


`python

class Triangle(object):
def init(self, angle1, angle2, angle3):
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
nombre_de_cotes = 3

def verifier_angles(self):
    if self.angle1 + self.angle2 + self.angle3 == 180:
        return True
    else:
        return False

mon_triangle = Triangle(90, 30, 60)
print mon_triangle.nombre_de_cotes
print mon_triangle.verifier_angles()

class Equilateral(Triangle):
angle = 60
def init(self):
self.angle1 = self_angle
self.angle2 = self_angle
self.angle3 = self_angle

**Oups, merci de réessayer. Avez-vous créé une classe nommée Equilateral? **

In the console

3
True
None
`


#2

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