This website works better with JavaScript.
Home
Explore
Help
Sign In
E2L_Ivry
/
cours-python
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Rename noms.txt -> pendu.txt
master
Dimitri Merejkowsky
6 years ago
parent
09be10355d
commit
c714de4191
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
sources/04-pendu.py
+0
-0
sources/pendu.txt
+ 3
- 3
sources/04-pendu.py
View File
@@ -2,9 +2,9 @@ import random
def read_words():
stream = open("noms
.txt")
contents =
stream
.read()
stream
.close()
file = open("pendu
.txt")
contents =
file
.read()
file
.close()
words = contents.splitlines()
return words
sources/noms.txt → sources/pendu.txt
View File