I'd like to prefice this by saying that I've only been learning Python 3 for a couple days now and really don't have a clue what I'm doing.
Anyway, the idea here is to have a turn based combat system. There's function that plays through to the end and then loops back to the beginning until someone has 0HP or less. The problem I'm having is that everytime it loops it resets the players health and the enemies health. I know why, it's because I declare the variable at the start of the function.
So what I'd like to know is how do I change the value of the variables "EnemyWHP" and "PlayerWHP"? So, after "EnemyWHP = EnemyWHP - Dice" how do I put whatever value that comes up with, into the "EnemyWHP" variable at the start of the program so that when it loops again, it shows the correct value?
Here's the relevant chunk of code: