<prompt> Theha papali ka ho sebelisa Python.nan  <response>: Instruction in English: Develop a game using Python. . Response in English: Heres a simple text-based game built in Python. Its called The Dungeon Escape. The player is a warrior who is stuck in a dungeon and must collect three keys by winning battles to escape. The game mechanics are based on a dice roll: the player and the enemy both roll a dice, and the higher number wins. If the player rolls the same or higher than his enemy, they win the battle, otherwise, they lose.pythonimport randomclass Player: def __init__self, name: self.name name self.initial_health 10 self.health self.initial_health self.keys 0 def attackself, enemy: player_roll random.randint1, 6 enemy_roll random.randint1, 6 if player_roll enemy_roll: printYou rolled a . Your enemy rolled a ..formatplayer_roll, enemy_roll printYou won the battle and found a key! self.keys 1 if self.keys 3: printYou have collected all 3 keys! You escaped the dungeon. Congratulations! return Won game else: self.health-1 printYou rolled a . Your enemy rolled a ..formatplayer_roll, enemy_roll printYou lost the battle and lost one health point. if self.health 0: printYou have no more health points. Game over. return Lost game printKeys: . Health: .formatself.keys, self.health, self.initial_health self.show_menu def restself: Player can rest to restore 1 health point, but the maximum is the initial health if self.health enemy_roll: printO phuthile . Sera sa hao se phuthile ..formatplayer_roll, enemy_roll print U hlotse ntoa me u fumane senotlolo! self.keys 1 if self.keys 3: printU bokeletse linotlolo tse 3 kaofela! U phonyohile sekoting. Kea u babatsa! khutla Papali e hlotseng se seng: self.health-1 printO phuthile . Sera sa hao se phuthile ..formatplayer_roll, enemy_roll printU hlotsoe ntoeng me u lahlehetsoe ke ntlha e le ngoe ea bophelo. .health 0: printHa u sa na lintlha tsa bophelo. Papali e felile. return Last game printLinotlolo: . Health: .formatself.keys, self .health, self.initial_health self.show_menu def restself: Sebapali se ka phomola ho tsosolosa ntlha e le 1 ea bophelo bo botle, empa boholo ke bophelo bo botle ba pele haeba bophelo bo botle 