fix
This commit is contained in:
parent
70e3c4e9f3
commit
69b3234c15
12
calcul.py
12
calcul.py
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user