4 Commits

Author SHA1 Message Date
a4493e6248 update 2025-01-11 16:16:24 +01:00
ff96ee96dd Update repo 2025-01-06 16:20:30 +01:00
69b3234c15 fix 2022-12-18 00:32:21 +01:00
70e3c4e9f3 fix 2022-12-18 00:10:23 +01:00
2 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
# calculmental_python
# calcpymental
Faites travailler vos neurones. Petit jeu de calcul mental simple programmé en python inspiré de mon premier programme réalisé à l'époque en Basic sur Amstrad CPC 6128
@@ -9,10 +9,10 @@ Ce script est développé sous Python 3 et doit fonctionner certainement sous Py
```
# Si ce n'est déjà fait !!
sudo apt-get install python3
git clone https://git.weblib.re/svnet/calculmental_python.git
git clone https://git.vermeulen.pro/PYTHON/calcpymental
```
```
cd calculmental_python
cd calcpymental
./calcul.py
```
```

View File

@@ -4,7 +4,7 @@
"""
Created on Wed Jun 27 18:50:20 2018
v0.3
@author: svnet
@author: @samuelvermeulen.pro
"""
import random
@@ -28,7 +28,7 @@ while tour <= int(ntour):
# On pose l'opération
if op == 1:
print("Combien font ", a, " + ", b, " = ")
print("Combien font ", a, " + ", b, " = ", end = " ")
resultat = input()
if resultat == "q": #Quitter
os.system('clear')
@@ -50,7 +50,7 @@ while tour <= int(ntour):
os.system('clear')
if op == 2:
print("Combien font ", a, " - ", b, " = ")
print("Combien font ", a, " - ", b, " = ", end = " ")
resultat = input()
if resultat == "q": #Quitter
os.system('clear')
@@ -72,7 +72,7 @@ while tour <= int(ntour):
os.system('clear')
if op == 3:
print("Combien font ", a, " X ", b, " = ")
print("Combien font ", a, " X ", b, " = ", end = " ")
resultat = input()
if resultat == "q": #Quitter
os.system('clear')
@@ -94,7 +94,7 @@ while tour <= int(ntour):
os.system('clear')
if op == 4:
print("Combien font ", a, " ÷ ", b, " = (donnez l'entier)")
print("Combien font ", a, " ÷ ", b, " = (donnez l'entier)", end = " ")
resultat = input()
if resultat == "q": #Quitter
os.system('clear')
@@ -118,4 +118,4 @@ while tour <= int(ntour):
tour += 1 #Incrément tour
print("Partie terminée, votre note est de", score, "/", ntour) # Fin de Partie
input("\n\rTouche ENTRÉE pour quitter")
input("\n\rTouche ENTRÉE pour quitter")