Apr-30-2021, 06:46 AM
Hi
I dont' understandard why the tirage() def doesnt execute (it works only after else block)
Could you help please??
I dont' understandard why the tirage() def doesnt execute (it works only after else block)
Could you help please??
import random def tirage(): for i in range(6): print(random.randint(1, 40)) print("Voulez-vous jouer au loto", "?") reponse= input("Entrez votre réponse:") print("Ma réponse est: " + reponse) if reponse == 'oui': print("Super,le tirage va commencer" '!') tirage() else: print ("Tant pis, bonne soirée...")