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
Part of cd player and tape recorder story

[4/16, 6:28 AM] Harish Exinc: Not servicing the 7000 re cd music player was the biggest mistake elders can record and sell instead of selling device [4/16, 6:36 AM] Harish Exinc: https://amzn.in/d/079

 
 
 
The vijayawada diamond game proposal of 1997

[3/27, 4:46 AM] Harish Exinc: So the curiosity in Vijayawada was to generate random numbers to show random direction and several small codes with turtle at home which I thought was only code.. [3/27,

 
 
 

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