import fonctions def jouer_au_zpendu(): mot, code = fonctions.choisir_mot() i = 1 while i<=8: lettre = fonctions.choisir_lettre() code = fonctions.tester_lettre(lettre, mot, code) score, i =fonctions.trouver_mot(code,i) i +=1 return(score ) def lancer_application(): nom, score = fonctions.rechercher_joueur() fonctions.afficher_regle_pendu(72) continuer = 'o' while continuer =='o': score = jouer_au_zpendu() continuer = input("Votre score est de {}, voulez vous continuer OUI ou NON ? (o/n)".format(score)) fonctions.sauvegarder_score(score, nom) if __name__ == '__main__': lancer_application()