height = 30 up = 5 down = 2 days = 0 total = 0 while total < height: days += 1 total += up if total >= height: break total -= down print(days)
To embed this project on your website, copy the following code and paste it into your website's HTML: