Introduction to classes "Ils se multiplient" ex 9


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-je5q0/1/4?curriculum_id=5370f030fed2a866a2000001#

<In what way does your code behave incorrectly? Include ALL error messages.>
Oups, merci de réessayer. Votre code semble un peu étrange. Jetez un oeil à l’indice si besoin!

<What do you expect to happen instead?>
What’s wrong? He printed exactly what I expected… plz I’m stuck

```python

class Animal(object):
“”“Fait des animaux mignons.”""
est_vivant = True
sante = “bonne”
def init(self, nom, age):
self.nom = nom
self.age = age

# Ajoutez votre méthode ici!
def description(self):
    print self.nom
    print self.age

hippopotame= Animal(“bubulle”,12)
paresseux= Animal(“dodo”,1)
ocelot= Animal(“dulac”,3)

print hippopotame.sante
print paresseux.sante
print ocelot.sante

<do not remove the three backticks above>

#2

Salut c’est un bug mais tu peux trouver la solution dans cette discussion


#3

thank you !

This isn’t the first time I encounter those type of problems with the submission correctness test (SCT)…

Ce n’est pas la première fois que je fais face à ce genre de problème de submission.


#4

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