attack = 30 recovery = 10 hp = 60 count = 0 while True: hp -= attack count += 1 if hp <= 0: break hp += recovery print(count)
To embed this project on your website, copy the following code and paste it into your website's HTML: