Advertisement
endzie_fyrge

[20] Product Price

Jul 9th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. price = float(input("Enter the product price: "))
  2. product_amount = int(input("Enter the product amount: "))
  3. day = input("What day it is? ")
  4.  
  5. if day.upper() in ("MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"):
  6.     total_price = product_amount * price
  7.     print(f"The total price is {total_price}.")
  8. elif day.upper() in ("SATURDAY", "SUNDAY"):
  9.     total_price = (product_amount * price) * 0.85
  10.     print(f"The total price is {total_price}.")
  11. else:
  12.     print("Error: The day you entered doesn't exist!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement