b=int(raw_input(" Tu veux histoire ou maths ? histoire-un maths-deux ")) if b is 1 : a=int(raw_input(" Date de naissance de Charlemagnes ? un-742 deux-695 trois-742 ")) if a<0 : print( " Desole , vous faits une erreur , quel est votre choix? " ) if a>3 : print(" Desole , vous faits une erreur , quel est votre choix ? ") if a is 1: print("desole , cest une mauvaise reponse , il fallait choisir 3") if a is 2: print("desole , cest une mauvaise reponse , il fallait choisir 3") if a is 3: print("Bonne reponse " ) print(" Prochaine Question ") t=int(raw_input(" Date de la revolution francaise ? un-1789 deux-1788 trois-1790 ")) if t<0 : print( " Desole , vous faits une erreur , quel est votre choix? " ) if t>3 : print(" Desole , vous faits une erreur , quel est votre choix ? ") if t is 1: print("Bonne Reponse") if t is 2: print("desole , cest une mauvaise reponse , il fallait choisir 1") if t is 3: print("desole , cest une mauvaise reponse , il fallait choisir 1" ) print("Prochaine Question ") u=int(raw_input(" Date de la mort d'hitler ? un-1942 deux-1945 trois-1943 ")) if u<0 : print( " Desole , vous faits une erreur , quel est votre choix? " ) if u>3 : print(" Desole , vous faits une erreur , quel est votre choix ? ") if u is 1: print("desole , cest une mauvaise reponse , il fallait choisir 2") if u is 2: print("Bonne Reponse") if u is 3: print("desole , cest une mauvaise reponse , il fallait choisir 2" ) print("Prochaine Question") v=int(raw_input(" Date de la mort de Simone Veil ? un-2017 deux-2016 trois-2015 ")) if v<0 : print( " Desole , vous faits une erreur , quel est votre choix? " ) if v>3 : print(" Desole , vous faits une erreur , quel est votre choix ? ") if v is 1: print("Bonne Reponse") if v is 2: print("desole , cest une mauvaise reponse , il fallait choisir 1") if v is 3: print("desole , cest une mauvaise reponse , il fallait choisir 1" ) z=int(raw_input(" Donald Trump a ete elu en ? un-2017 deux-2016 trois-2015 ")) if z<0 : print( " Desole , vous faits une erreur , quel est votre choix? " ) if z>3 : print(" Desole , vous faits une erreur , quel est votre choix ? ") if z is 2: print("Bonne Reponse") if z is 1: print("desole , cest une mauvaise reponse , il fallait choisir 2") if z is 3: print("desole , cest une mauvaise reponse , il fallait choisir 2" ) if b is 2 : h=int(raw_input(" 3+3 ? un-6 deux-5 trois-4 ")) if h<0 : print("repars en CP " ) if h>3 : print("Repars en CP") if h is 1: print("Bien joue") if h is 2: print("Non") if h is 3: print("Tes nul") print("Prochaine Question") c=int(raw_input(" 3*3 ? un-9 deux-7 trois-8 ")) if c<0 : print("repars en CP " ) if c>3 : print("Repars en CP") if c is 1: print("Bien joue") if c is 2: print("Non") if c is 3: print("Tes nul") print("Prochaine Question") j=int(raw_input(" 3+2 ? un-5 deux-4 trois-6")) if j<0 : print("repars en CP " ) if j>3 : print("Repars en CP") if j is 1: print("Bien joue") if j is 2: print("Non") if j is 3: print("Tes nul") print("Prochaine Question ") k=int(raw_input(" 2+2 ? un-6 deux-5 trois-4 ")) if k<0 : print("repars en CP " ) if k>3 : print("Repars en CP") if k is 3: print("Bien joue") if k is 1: print("Non") if k is 2: print("Tes nul") print("Derniere Question") f=int(raw_input(" 2*2 ? un-6 deux-5 trois-4 ")) if f<0 : print("repars en CP " ) if f>3 : print("Repars en CP") if f is 3: print("Bien joue") if f is 1: print("Non") if f is 2: print("Tes nul") print("Derniere Question")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question