Beginner programmer here. Not looking to clean up code nor to use lists right now. Just looking for a reason why the product of the code below keeps spitting out 6 despite changing the input.
# Application will give discounts based on different ticket types and the day of the week.
tick_Type = input("What type of tickets are you buying? Child, general, or senior? ")
tick_Num = int(input("How many tickets are you buying? "))
day = input("What day do you want to watch the movie? Enter mon for Monday etc. ")
if tick_Type == "child" and day == "mon" or "tue" or "wed":
print(8 * tick_Num * 0.75)
elif tick_Type == "senior" and day == "mon" or "tue" or "wed":
print(9 * tick_Num * 0.75)
elif tick_Type == "general" and day == "mon" or "tue" or "wed":
print((10 * tick_Num) * 0.75)
elif tick_Type == "child" and day == "thu" or "fri" or "sat":
print((8 * tick_Num) * 1)
elif tick_Type == "senior" and day == "thu" or "fri" or "sat":
print((9 * tick_Num) * 1)
elif tick_Type == "general" and day == "thu" or "fri" or "sat":
print((10 * tick_Num) * 1)
elif tick_Type == "child" and day == "sun":
print((8 * tick_Num) * 0.9)
elif tick_Type == "senior" and day == "sun":
print((9 * tick_Num) * 0.9)
elif tick_Type == "general" and day == "sun":
print((10 * tick_Num) * 0.9)
Aucun commentaire:
Enregistrer un commentaire