Compléter et corriger cette proposition de code
Proposition 1
mot="voiture"
def partie_pendu(mot):
reponse="-------"
while reponse!=mot:
lettre=input("Propose une lettre ")
for i in range(len(mot)):
reponse_bis=""
if mot[i] == lettre:
reponse_bis+=lettre
else:
reponse_bis+=reponse[i]
reponse=reponse_bis
print(reponse)
return "Bravo !!!"
Proposition 2
mot="informatique"
def partie(mot):
reponse="------------"
while reponse!=mot:
lettre=input("votre lettre ?")
for caract in mot:
reponse1=""
if caract==lettre:
reponse1+=......
else:
reponse1+=......
reponse=reponse1
print(reponse)
print("Bravo !!!!")