TORONTO KIDS COMPUTER CLUB | Aurora Wednesday 18:30 Python Practice – 04 20.09.16.
18327
post-template-default,single,single-post,postid-18327,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Wednesday 18:30 Python Practice – 04 20.09.16.

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
No Comments

Sorry, the comment form is closed at this time.