OneCompiler

money

126

money=int(input("Enter the amount : "))
list=[500,200,100,50,20,10]
for i in list:
count=money//i
money=money%i
print("note : ",i,"\t No of notes : ",count)