livepython.net

60. Python Program to Apply a Discount on Orders Over 1000

Easyif

Overview

Change a value only when a condition is True.

Problem Statement

Read an order total. If it is more than 1000, take 10 per cent off. Then print the amount to pay with two decimal places. For example, for 1500:

To pay: 1350.00

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

1500

Output

The output for that example:

To pay: 1350.00

The tests try 3 different inputs.

Learn this firstChapter 8 · Python if Statement: Make Decisions in Code
solution.py
# write your code here

EXPECTED OUTPUT

1To pay: 1350.00

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.