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.
Video Tutorial
Python Code
Complete the code provided below:
Testing
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 |
| #1 | Price: £100 Discount Rate: 25% |
Discount: £25 Discounted Price: £75 |
|
| #2 | Price: £160 Discount Rate: 40% |
Discount: £64 Discounted Price: £96 |
|
| #3 | Price: £180 Discount Rate: 10% |
Discount: £18 Discounted Price: £162 |

Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area
Degree Fahrenheit (°F) and Degree Celsius (°C) are the main two units to measure temperature.
The story tells us that long long ago the great Sultan of India loved to play games. As he started to get bored of the games that were present at the time he asked a wise man who lived in his kingdom to come up with a new game.
To the Sultan’s surprise, the wise man did not ask for any gold. Instead he only had one request: He asked just for a few grains of rice in the following manner: the sultan was to put a single grain of rice on the first chess square, two grains on the second square, four on the third square and carry on doubling this number on every consequent square to fill up all 64 squares of the chessboard.









The aim of this challenge is to draw a cube in 3D and to make it rotate on the screen.


Add more edges to the code given above to create a full house including a roof, a front door and a window.







