Prosím o pomoc

Dobrý deň,
prosím o pomoc, trápim sa s tým nikeoľko hodín a stále mi to nevychádza správne.
Potrebujem v Python naprogramovať: (prikladám foto)
Ďakujem.

Attachments:
Question image
1 answer
avatar
Account deleted
def countCurrency(amount):
notes = [500, 200, 100, 50, 20, 10, 5, 1]

noteCounter = [0, 0, 0, 0, 0, 0, 0, 0]

print("Currency Count -> ")

for i, j in zip(notes, noteCounter):
if amount >= i:
j = amount // i
amount = amount - j * i
print(i, " : ", j)

value = input("Enter the amount of money:")
countCurrency(int(value))
Comments:
Account deleted
velkost bankoviek a pocet sa samozrejme da prisposobit v noteCounter a notes