From de7f9d680558d2aae0e89934f3b50a6db1b63738 Mon Sep 17 00:00:00 2001 From: Maxence <> Date: Fri, 28 Feb 2025 15:56:08 +0100 Subject: [PATCH] =?UTF-8?q?=1B[200~Le=20choix=20de=20l'action=20ce=20fait?= =?UTF-8?q?=20maintenant=20dans=20le=20Main=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fonction_reussite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fonction_reussite.py b/fonction_reussite.py index aeb85fb..dec81d9 100644 --- a/fonction_reussite.py +++ b/fonction_reussite.py @@ -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")) \ No newline at end of file +print(reussite(input(), input())) \ No newline at end of file