← The arcade

Machines · difficulty 1 of 3

ATM note dispenser 🏧

Dispense a withdrawal using the fewest notes from £50, £20 and £10. Print one line per note type used, largest first, and refuse amounts that are not multiples of 10.

Write it in the browser and press run. Real Python, checked against the expected output, no account needed.

Skills: dicts, if/else, loops

Open the arcade