8/11


#1

https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-ejrp4/1/2?curriculum_id=5370f030fed2a866a2000001


Is there a bug on the french version of this exercise ?

class Voiture(object):
condition = "nouveau"
def init(self, modele, couleur, mpg):
self.modele = modele
self.couleur = couleur
self.mpg = mpg

def afficher_voiture(self):
    return "ceci est" + self.modele + ""  + self.couleur +  "avec"  + str(self.mpg) + "MPG."

def conduire_voiture():
self.condition = "usé"

ma_voiture = Voiture("DeLorean", "argent", 88)

print ma_voiture.condition
ma_voiture.conduire_voiture()
print ma_voiture.condition



#2

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