|
|
@ -1,5 +1,5 @@ |
|
|
|
def reussite(joueur, action): |
|
|
|
with open('stats.txt', 'r') as f: |
|
|
|
with open("stats.txt", 'r') as f: |
|
|
|
manque = 0 |
|
|
|
reussi = 0 |
|
|
|
for ligne in f: |
|
|
@ -20,4 +20,4 @@ def reussite(joueur, action): |
|
|
|
tentatives = manque+reussi |
|
|
|
return tentatives, reussi |
|
|
|
#test |
|
|
|
print(reussite("J3V", "lancer")) |
|
|
|
print(reussite(input(), input())) |