trap = "true" lives = 1 while lives > 0 : print( "You creep along the tunnel..." ) if trap == "true" : print( "You fall into a trap and die!" ) lives = lives - 1 print( "Lives left:", lives ) print( "You have no lives left. GAME OVER!" )