W = 11 F = 5 T = 3 bag = 0 while W > 0: if W % F == 0: bag += W // F break W -= T bag += 1 print(bag)
To embed this project on your website, copy the following code and paste it into your website's HTML: