Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- price = float(input("Enter the product price: "))
- product_amount = int(input("Enter the product amount: "))
- day = input("What day it is? ")
- if day.upper() in ("MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"):
- total_price = product_amount * price
- print(f"The total price is {total_price}.")
- elif day.upper() in ("SATURDAY", "SUNDAY"):
- total_price = (product_amount * price) * 0.85
- print(f"The total price is {total_price}.")
- else:
- print("Error: The day you entered doesn't exist!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement