Memory Error: Would their be away to make this shorter or incremental so this doesnt happen? :     #This is Where Everything about the Player is stored
class Player_Data:
    def Player_Data_Vars(self):
        import sys
        #print(sys.getrecursionlimit())
        sys.setrecursionlimit()
        #print(sys.getrecursionlimit())
        def Xp(self):

            Level = 0
            Xp = 0
            Xp = Xp + 10
            if Xp == 10:
                Xp = 0
                Level = Level + 1
                if Xp == 0:
                    Hp(self)
            return
        def Hp(self):
            Level = Xp('Level')
            Base_Hp = 100
            Level_Up_Hp = + 20 * Level
            Base_Hp = Base_Hp + Level_Up_Hp
            print(Base_Hp)
            return
        def Atk(self):
            Fists = 10
            Stick = 10
            Weopon = Fists
            Wand = Stick

            Level = 0
            Level_Up_Magic_Dmg = + 10 * Level
            Level_Up_Dmg = + 10 * Level
            Base_Player_Dmg = 10 + Weopon + Level_Up_Dmg
            Base_Magic_Dmg = 10 + Wand + Level
            print(Base_Magic_Dmg, Base_Player_Dmg)
            return

        Xp('self')
        print('')
        Atk('self')
        print('')
        Hp('self')

    Player_Data_Vars('self')


    Player_Data = Player_Data

this is my results

Traceback (most recent call last):
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
    Hp(self)
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 20, in Hp
    Level = Xp('Level')
  File "C:/Users/Luke/Desktop/Game Project Folder Python/Player Data.py", line 17, in Xp
MemoryError: Stack overflow
repeated:


