Why doesn't the if statement recognise that the int = 0? : I'm creating a text based adventure game, and this is meant to be a small fight. The int userhits or deputy hits should be set to 0 at somepoint, but the code is stuck in a loop that goes passed 0.
    `def deputyfight(deputyawake):
     print("You do not have any weapons, you will have to fight him.")
     userhits = 5
     deputyhits = 5
     print("You run at the guard and throw a punch at him")
     print("He dodges it, the fight has begun")
     loop = True
     while loop:
        if loop:
            userdmg = int(random.randint(5, 10))
            deputydmg = int(random.randint(1, 10))
            if userdmg >= deputydmg:
                print("You punch the deputy")
                userhits -= 1
                print(userhits)
            elif userhits == 0:
                print("You knock out the deputy and drag him into the cell")
                print("He is out cold, he most likely won't remember this or 
                you")
                deputyawake = False
                sheriffsoffice(deputyawake)
            elif deputydmg < userdmg:
                print("The deputy punches you")
                usershealth(5)
                deputyhits -= 1
                print(deputyhits)
            elif deputyhits == 0:
                print("The deputy puts up a good fight, but you catch him with a 
                lucky punch")
                print("You win the fight, but have taken a lot of damage")
                print("Your health is at: ", health)
                deputyawake = False
                sheriffsoffice(deputyawake)`