done=False
while not done:
    for level in range(1,13):
       Code...
        while running:
            Code.....
            #10 - Win/Lose check
            if healthvalue<=0:
                done=True
                running=0
                exitcode=0
                print "aaa"
I have got this game on python which when the health is lower than 0, it should quit the loop. However, even though I state it so that done=True in the if statement, the loop still does not quit although running does become 0. I also checked by printing "aaa", and it does print, but yet done does not equal True in order to quit the loop.
Please help! Does it have something to do with the for loop?
 
    