Browse Source

Update sources/04-pendu.py

master
Dimitri Merejkowsky 6 years ago
parent
commit
e5798ff62f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sources/04-pendu.py

+ 2
- 2
sources/04-pendu.py View File

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