Write a python program to input amount from user and print minimum number of notes (Rs. 500, 100, 50, 20, 10, 5, 2, 1). I mark Your answer as brainlist plz answer me
Answers
Answered by
2
Explanation:
notes = [500, 100, 50, 20, 10, 5, 2, 1]
notecount = [0, 0, 0, 0, 0, 0, 0, 0]
amount = int(input("Enter the amount: "))
print ("Currency Count -> ")
for i, j in zip(notes, notecount):
if amount >= i:
j = amount // i
amount = amount - j * i
print (i ," : ", j)
Similar questions