Facebook
From Kien Nguyen, 7 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 420
  1. discount = 15
  2.  
  3. costPerDVD = float(input("Enter the cost of each DVD: "))
  4.  
  5. numberBought = int(input("Enter the number of DVDs bought: "))
  6. totalCost = (costPerDVD * numberBought) - discount
  7.  
  8. print("The total cost after a discount of", discount, "is", totalCost)