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()