From e5798ff62f0c379632cc05299ec8699020eebde7 Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Mon, 3 Dec 2018 18:37:42 +0100 Subject: [PATCH] Update sources/04-pendu.py --- sources/04-pendu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/04-pendu.py b/sources/04-pendu.py index 28d37f3..c2ff3e3 100644 --- a/sources/04-pendu.py +++ b/sources/04-pendu.py @@ -1,5 +1,6 @@ import random + def read_words(): stream = open("noms.txt") words = stream.read().splitlines() @@ -29,8 +30,6 @@ def display_hint(word, letters): print("") - - def main(): words = read_words() word = choose_word(words) @@ -47,4 +46,5 @@ def main(): print("Gagné") return + main()