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
Troy eternal movie script authored by Harish!

[1/15, 6:38 PM] Harish Teaching: What if troy eternal became a movie.. [1/15, 6:44 PM] Harish Teaching: Forgot to make a video with it just pictures with first prototype.. [1/15, 6:46 PM] Harish Teach

 
 
 

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