print( "-----------------------------" ) print( "Troll attack:" ) import random health = 100 print() print( "You are attacked by a troll!" ) print( "Your health:", health ) while health > 0 : print() print( "The troll swings his axe" ) damage = random.randint( 5, 20 ) health = health - damage print( "You take", damage, "damage" ) print( "Your health:", health ) print() print( "You are DEAD!" )