10.Write a Python program to count total number of notes in given amount.
Solution :-
amount = int(input("Enter the amount...."))
n2000=n500=n200=n100=n50=n20=n10=n5=n2=n1=0
if(amount >=2000):
n2000 = amount//2000
amount = amount -n2000*2000
if(amount >=500):
n500 = amount//500
amount = amount -n500*500
if(amount >=200):
n200 = amount//200
amount = amount - n200*200
if(amount >=100):
n500 = amount//100
amount = amount -n100*100
if(amount >=50):
n500 = amount//50
amount = amount -n50*50
if(amount >=20):
n500 = amount//20
amount = amount -n20*20
if(amount >=10):
n500 = amount//10
amount = amount - n10*10
if(amount >=5):
n500 = amount//500
amount = amount -n5*5
if(amount >=2):
n500 = amount//2
amount = amount -n2 * 2
if(amount >=1):
n1 = amount
print("Total number of Notes ")
print("2000 :-",n2000)
print("500 :-",n500)
print("200 :-",n200)
print("100 :-",n100)
print("50 :-",n50)
print("20 :-",n20)
print("10 :-",n10)
print("5 :-",n5)
print("2 :-",n2)
print("1",n1)
Output :-