CJCoding With Joseph
15free / daySign inCreate account

Enough To Pay

Read the price of an item and then the amount handed over, both whole dollars. When the amount is less than the price print Not enough money; otherwise print the change in the form Change: <amount> using an f-string. Input: two lines, the price then the amount paid, each an integer, no prompts. Output: one line.

Expected Output:

Not enough money

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
If Statements
📥 Auto-Input:
20\n15\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.