Shopping during the sales can sometimes be very confusing. With discounted prices at 10%, 20%, 50% or even 70%!
For this challenge you are going to write a Python script that prompts the user to enter a price in pounds (or in your own currency) (e.g. £90) and a discount rate to apply (e.g. 20%).
Your program will then calculate and display the discounted price.
Complete the code provided below:
Once your code is done, complete the following tests to check that your code is working as expected:
|Test #||Input Values||Expected Output||Actual Output|
Discount Rate: 25%
Discounted Price: £75
Discount Rate: 40%
Discounted Price: £96
Discount Rate: 10%
Discounted Price: £162