How can i get my rpg to run correctly? I am a noob at coding : im a bit of a noob to python, and coding in general so bare with me. Im trying to get this rpg program to work, but i cant figure it out. I run it and well, you will see when you run the program. For some reason when i run this it stops at 1,2,3,4 after every move i make. Am i not returning anything? What am i doing wrong here, and how can i improve my orgaization and code in the future? 


                
    import math
    
    import random
    
    
    class character:
        def __init__(self, hp, max_hp, att, exp, int):
            self.hp = hp
            self.max_hp = max_hp
            self.att = att
            self.exp = exp
            self.int = int
    
    class enemy:
        def __init__(self, hp, max_hp, att, exp, int):
            self.hp = hp
            self.max_hp = max_hp
            self.att = att
            self.exp = exp
            self.int = int
    
    
    
    
    charspells = ['Fireball']
    Loop = True
    
    def fireball(character, enemy):
        enemy.hp -= character.int
        print('You did, ',character.int ,'to the enemy')
        print('Enemy.hp', enemy.hp)
        return enemy.hp
    
    items = []
    
    mainc = character(100, 100, 10, 0, 10)
    tai_lopez = enemy(30, 30, 5, 0, 10)
    
    def character_battle(character, enemy):
        choice = input('What would you like to do?\n 1. Attack \n 2. Spells \n 3. Items \n 4. Run')
        if choice == input('1'):
            print('You attack the enemy!')
            enemy.hp -= character.att
            print('You dealt', character.att, 'to the enemy!')
            print('Enemy hp =', enemy.hp)
        if choice == input('2'):
            spellchoice = input('Which spell do you wish to call?')
            print('1.', charspells[0],'\n' '2.', charspells[1], '\n' 'q', 'exit')
            if spellchoice == ('1'):
                print('You used fireball!')
                fireball(character, enemy)
    
            elif spellchoice == ('2'):
                if charspells[1] != 'Lightning bolt':
                    print('It doesnt exist, sorry')
                    # ill add more spell fucntions later
            if spellchoice == ('3'):
                print('You went back to the menu')
        if choice == input('3'):
            if items == []:
                print('You are gay and have no items')
            if items == ['potions']:
                print ('homo')
                #placeholder ill add the fucntion later
        elif choice == input('4'):
            Loop = False
    
    def enemy_battle(enemy, character):
        a = random.randint(0,50)
        if a <= 35:
            print('The enemy attacks you!')
            character.hp -= enemy.att
            print('Your hp =', character.hp)
        elif a <= 50:
            print('The enemy uses mind attacks bruh')
            character.hp -= enemy.int
            print('Your hp =', character.hp)
    
    def battle_loop(character, enemy):
        Loop1 = True
        while Loop1 == True:
            while enemy.hp > 0  and character.hp > 0:
                character_battle(character, enemy)
                enemy_battle(character, enemy)
                if enemy.hp <= 0:
                    print('You Won')
                    Loop1 =  False
                if character.hp <= 0:
                    print('You lost')
                    exit()
    
    
    
    battle_loop(mainc, tai_lopez)


