H = 10 A = 3 B = 1 total = 0 day = 0 while total < H: day += 1 total += A if total >= H: break else: total -= B print(day)
To embed this project on your website, copy the following code and paste it into your website's HTML: