Created
September 25, 2023 18:29
-
-
Save mx-droid/adc33d334de97258855b6c64dbcc039e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# condition: | |
#mineur = 7 | |
#majeur = 12 | |
unite = "Fcfa" | |
"""recolter age de la personne""" | |
age = input("Bonjour,vous avez quel age ? ") | |
"""les condition pour payer les place du cinema""" | |
if age < str(18): | |
mineur = 7 | |
print("Vous devez payer " + str(mineur) + " " + unite + " pour l'entrer") | |
else: | |
majeur = 12 | |
print("Vous devez payer " + str(majeur) + " " + unite + " pour l'entrer") | |
pop_corn = input("Voulez vous du pop corn ?") | |
if pop_corn == "oui": | |
pop_corn = 5 | |
print("ça vous coutera " + str(pop_corn) + " fcfa de plus") | |
demande = input("voulez vous que je valide les pop corn ? ") | |
if demande == "oui" and age < str(18): | |
mineur = 7 | |
somme = pop_corn + mineur | |
print("le total fera " + str(somme) + " fcfa") | |
else: | |
print(" veuiller payer " + str(mineur) + " fcfa") | |
if demande == "oui" and age >= str(18): | |
majeur = 12 | |
pop_corn = 5 | |
somme = pop_corn + majeur | |
print("le total fera " + str(somme) + " fcfa") | |
else: | |
# try: | |
# if age < str(18): | |
# mineur = 7 | |
# print("ça coutera " + str(mineur)) | |
# else: | |
# majeu = 12 | |
# print("vous devez payer " + str(majeur) + " fcfa" ) | |
print("pasee une bonne journe ") | |
"""j'ai un petit probleme entre 45 et 51,jaimerais savoir pourquoi ya erreur sur le 51""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment