premier
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#recolter l'age des clients
|
||||
age = int(input("Quel est votre age ?"))
|
||||
price_mineur = 7
|
||||
price_majeur = 12
|
||||
i = 18
|
||||
d = "€" #devise est egale à devise
|
||||
if age >= i :
|
||||
print("vous etes majeur ! veuillez payez 12€ !")
|
||||
elif age <= i :
|
||||
print("vous etes mineur ! veuillez payez 7€ !")
|
||||
#proposition popcorn
|
||||
pop_price = 5
|
||||
proposition = input("voulez vous du pop corn ? :")
|
||||
if proposition == "oui" and age > i :
|
||||
print("parfait , la facture s'élève à:" , price_majeur+pop_price,"€")
|
||||
elif age > i and proposition == "non" :
|
||||
print("votre facture est de :", price_majeur,d)
|
||||
elif age < i and proposition == "non" :
|
||||
print("votre facture est de :" , price_mineur,d)
|
||||
elif age < i and proposition == "oui" :
|
||||
print("votre facture est de :",price_mineur+pop_price,"€")
|
||||
else:
|
||||
print("choix invalide")
|
||||
Reference in New Issue
Block a user