Skip to content
Solution Debug 4.4. Money-Off
  • Pages
    • Solution
    • The Task
    • icon picker
      Python Starter Code
    • Code Clips

Python Starter Code

Copy and paste the code below into your main.py file before you begin the task.
# prints a blank line
print('\n\n')

# get original price

originalPrice = int(input('Please enter the original price: '))

# get money off
saving = int(input('Please enter the sale price: '))

# calculate money saved
saving = salePrice - originalPrice

# prints a blank line
print('\n\n')
# display results
print('Super Sale!')
print('This item used to cost £' + originalPrice)
print('Now available at £' + saving)
print('You save £' + salePrice)

# prints a blank line
print('\n\n')
Below is a link to the starter task. You can right click open on replit to demo the answer to pupils and talk through the code.

 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.