print("Préférez-vous 1)la mer, 2)la ville ou 3)la montagne ?") mer=1 ville=2 montagne=3 rep1=input("Votre réponse :") R1=int(rep1) print("Voulez-vous partir dans un pays 4)du nord ou 5)du sud?") nord=4 sud=5 rep2=input("Votre réponse :") R2=int(rep2) print("Voulez-vous: 6)Partir en famille 7)Vous détendre ou 8)Partir à l'aventure ?") famille=6 detente=7 aventure=8 rep3=input ("Votre réponse :") R3=int(rep3) if R1==1 and R2==4 and R3==6: print("miami") else: if R1==1 and R2==4 and R3==7: print("Marrakech") else: if R1==1 and R2==4 and R3==8: print ("Islande") if R1==1 and R2==5 and R3==6: print("Sydney") else: if R1==1 and R2==5 and R3==7: print("Bahamas") else: if R1==1 and R2==5 and R3==8: print("Réunion") if R1==2 and R2==4 and R3==6: print("Tokyo") else: if R1==2 and R2==4 and R3==7: print("Las Vegas") else: if R1==2 and R2==4 and R3==8: print ("Islande") if R1==2 and R2==5 and R3==6: print("Rio de Janeiro") else: if R1==2 and R2==5 and R3==7: print("Singapour") else: if R1==2 and R2==5 and R3==8: print("New Dehli") if R1==3 and R2==4 and R3==6: print("Vosges") else: if R1==3 and R2==4 and R3==7: print("Megève") else: if R1==3 and R2==4 and R3==8: print ("Madère") if R1==2 and R2==5 and R3==6: print("Nouvelle-Zélande") else: if R1==3 and R2==5 and R3==7: print("Ile de la Dominique") else: if R1==3 and R2==5 and R3==8: print("Népal")
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