top of page

Cashier

169

[500, 100, 50, 10, 5, 2, 1]

[0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 0.0]


530

[500, 100, 50, 10, 5, 2, 1]

[1.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0]


import random


bill=random.randint(5,1000)

print(bill)

bill2=bill

cash=[500,100,50,10,5,2,1]

print(cash)

Breakup=[0]*len(cash)


for i in range(len(Breakup)):

Breakup[i]=(bill-bill%cash[i])/cash[i]

bill=bill-Breakup[i]*cash[i]


print(Breakup)

 
 
 

Recent Posts

See All
Math jokes

Human and computer joke 2+2=0 2+2=0 0b0010+0xfa=0x01 0b0010+0xfa=0x01 Qubit joke forgot... maybe in 5 years Casinos only way to revise mathemics if I am pm Calculating time of goodness is a revision

 
 
 
The situation of physics in India

Hard to win fields medal for field theory after an unforgiving D grade in a theory course in 2010 for working on quantum optics due to lack of time and they then talked to all scientists not to give

 
 
 

1 Comment


Dr. Harish Ravi
Dr. Harish Ravi
Dec 13, 2021

What's your address so I can buy a birthday cake and random food items and maybe come soneday and send or I will just buy some internet service on every birthday of yours and let the ripple economics . Please imagine. It's just a psychological experiment if you sign up. Anyone can send products too bypassing website.

Like
bottom of page