# Cashpoint problem # Subroutine to control note dispenser. def Dispense(Amount): print("Withdraw £{}".format(Amount)) # £20 notes while Amount >= 20: print("Dispense £20") Amount = Amount - 20 # £10 notes while Amount >= 10: print("Dispense £10") Amount = Amount - 10 # £5 notes while Amount >= 5: print("Dispense £5") Amount = Amount - 5 # Main program Dispense(115)