+ 3

Can someone please help me find what is wrong with my program

It is in python and it is called attack https://code.sololearn.com/cu1JU6JoMV4V/?ref=app

20th Feb 2019, 2:07 PM
Trijal
5 Answers
+ 4
Some syntax error there, here corrected: https://code.sololearn.com/c9CXAZ9Dz5Ka/?ref=app
20th Feb 2019, 2:21 PM
Maneren
Maneren - avatar
+ 4
Thanks I couldn't have corrected my program without you
20th Feb 2019, 2:27 PM
Trijal
+ 3
You mean this code? https://code.sololearn.com/cu1JU6JoMV4V/?ref=app I think this part is the issue: playerhp = playerhp - dmg dmg has no value, so playerhp will not change
20th Feb 2019, 2:18 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Oh thanks
20th Feb 2019, 2:19 PM
Trijal
+ 3
Thanks maneren
20th Feb 2019, 2:22 PM
Trijal