Cashier
- Dr. Harish Ravi

- Oct 29, 2021
- 1 min read
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)







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.