18 Sep Aurora Wednesday 18:30 Python Practice – 04 20.09.16.
Question:
A store is having a sale. They’re giving $10 off when you purchase more than $100. Write a program that asks the purchase price and displays the final price.
Sample Input 1: Your purchase: 90 Sample Output 1: You final price is $90
Sample Input 2: Your purchase: 120 Sample Output 2: your final price is $110
Hint: You need to use float(input(...)) to get how much you purchased You need to use if statement to calculate the final price if your purchases is more than 100
Sorry, the comment form is closed at this time.