Académique Documents
Professionnel Documents
Culture Documents
if play == 1 :
print("\n")
print("Salut", prénom)
import random
"stylo","agent","fromage","whisky","billet","boyaux",
"laser","joystick","crane","joyeux","cahier","camping","argent",
"rivage","physique",]
score = 0
print("Tu as 6 vies")
print("\n")
vie = 6
while play == 1 :
vie = 6
mot=(liste_mots[random.randint(0,21)])
longueur=len(mot)
barre=["_ "]
barre=barre*longueur
grandeur=longueur
while play == 1 :
vie = 6
mot=(liste_mots[random.randint(0,21)])
longueur=len(mot)
barre=["_ "]
barre=barre*longueur
grandeur=longueur
else:
print("Raté")
if grandeur==longueur :
print(longueur*"_ ")
else:
print (resultat)
vie=vie-1
print("Il te reste",vie,"vies")
print("\n")
if vie==0 :
print("Tu as perdu")
elif grandeur==0 :
score=score+5
if replay != 1 :
break