Comment on affiche une variable ?
Je cherche un commande pour afficher une variable en python un peut comme "cin >>" en C++
Mon code:
- Programme de simulation de compte en banque
import random
import time
print("Voici la valeur de votre compte bancaire: ")
compteBank = random.randrange(0,1001) #Génère un nombre en 1 et 1000
time.sleep(2) #Temps d'attente avant affichage de la variable compteBank
(C'EST ICI MON PROBLEME)
print("$")
time.sleep(10) #Temps d'attente avant fermeture du logiciel