They're multiplying / "code seems to be strange "


#1


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

Oups, merci de réessayer. Votre code semble un peu étrange. Jetez un oeil à l'indice si besoin!


Replace this line with your code. 

class Animal(object):
    """Fait des animaux mignons."""
    est_vivant = True
    sante="bonne"
    def __init__(self, nom, age):
        self.nom = nom
        self.age = age
    
    def description(self):
        
        print (" le nom de l'hippo est ", self.nom )
        print (" l age de l'hippo est ", self.age)
        
hippo=Animal("drek",18)
paresseux=Animal("laure",30)
ocelot=Animal("alex",21)

hippo.description()
print hippo.sante
print paresseux.sante
print ocelot.sante


#2

Bonjour @maximeparisestmagiqu,

Your description method is not quite correct. It should print output as follows ...

    def description(self):
        print self.nom
        print self.age

However, there is also a bug in the submission correctness test (SCT) for this exercise. To pass, you will need to add the following workaround to your code ...

# Code de déblocage ...
def aattr(*args):
    return True

#3

thank you @appylpye ...!


#4

De rien, @maximeparisestmagiqu!


#5