Python – Game that fights enemies at random

This program is the basis of a bigger game I'm working on. I want to make sure that I did it properly before continuing. Please give pointers to everything I can improve. I learn by myself, so I doubt that my structure is the best possible.

enemies.py module

class enemy:
& # 39; & # 39; & # 39;
Here's how to define users and items
& # 39; & # 39; & # 39;
def __init __ (auto, name, resume, damage):
self.name = name
self.hp = hp
self.damage = damage

class element:
def __init __ (self, name, hp_bonus, damage_bonus, shield):
self.name = name
self.hp_bonus = hp_bonus
self.damage_bonus = damage_bonus
self.shield = shield

game.py/ main module

randomly import
import time
enemy enemy import
of the enemy import article

Level = 1
Level_Bonus = [2.0, 5.0, 8.0, 11.0, 13.0, 15.0, 18.0]
Level_Max = 20
ITEM = ""
Enemy = ""
Potion = random.randint (3, 7)
Enemies_Fought = 0


Player = enemy ("Player", 100, random.randint (5, 8))
Dog = enemy ("DOG", 40, random.randint (1, 8))
Chat = enemy ("Chat", 20, random.randint (1, 5))
Monkey = enemy ("Monkey", 55 years old, random.randint (5, 8))
Ogre = enemy ("Ogre", 100, random.randint (10,120))


Ring = item ("RING", 10, 0, 0)
Sword = item ("SWORD", 0, 10, 0)
Shield = item ("SHIELD", 0, 0, 3)
No_item = item ("NO ITEM", 0, 0, 0)


def ITEM_CHANCE ():
Global ARTICLE
item_chance = random.randint (1,1000)
if item_chance> 1 and item_chance < 80:
        ITEM = Ring
        Player.hp += ITEM.hp_bonus
        print('''
        Your health has increased by 10!''')
        print(f'''
        You found a {ITEM.name}!!!''')
    elif item_chance > 140 and item_chance < 175:
        ITEM = Sword
        Player.damage += ITEM.damage_bonus
        print('''
        Your damage has increased by 10!''')
        print(f'''
        You found a {ITEM.name}!!''')
    elif item_chance > 500 and item_chance <600:
ITEM = Shield
Enemy.damage - = ITEM.shield
print (& # 39; & # 39; & # 39;
Enemy damage reduced by 3 !! & # 39; & # 39; & # 39;)
print (& # 39; & # 39; & # 39; & # 39; & # 39;
You found a {ITEM.name} !!! & # 39; & # 39; & # 39;)
other:
ITEM = No_item
print (& # 39; & # 39; & # 39;
No items found & # 39; & # 39;)


def which_enemy ():
Global Enemy
Enemy_choose = random.randint (1, 100)
if Enemy_choose < 30:
        Enemy = Cat
    elif  Enemy_choose > 30 and Enemy_choose < 70:
        Enemy = Dog
    elif Enemy_choose > 70 and Enemy_choose < 95:
        Enemy = Monkey
    else:
        Enemy = Ogre



def fight():
    global Enemy
    global Player
    which_enemy()
    print(f'''
    You have come across a {Enemy.name}''')
    keep_going = input(f'''
    Do you wish to fight it, this will be a battle to the death and
    your hp is "{Player.hp}".
    1) Yes.
    2) No.
    Enter option: ''')
    if keep_going == "2":
        print(f'''
        The enemy hit you for {Enemy.damage} as you escaped.
        ''')
        Player.hp = Player.hp - Enemy.damage
        print(f'''
        Your health is now {Player.hp}
        ''')
        return False
    elif keep_going == "1":
        while Player.hp > 0 and Enemy.hp> 0:
print (& # 39; & # 39; & # 39; & # 39; & # 39;
The enemy hit you for {Enemy.damage} Damage "& # 39; & # 39;)
Player.hp = Player.hp - Enemy.damage
if Player.hp <0:
Player.hp = 0
print (& # 39; & # 39; & # 39; & # 39; & # 39;
Your health is now {Player.hp} & # 39; & # 39;)
time.sleep (.2)
print (& # 39; & # 39; & # 39; & # 39; & # 39;
You hit the enemy for an amount of {Player.damage} damage. & # 39;)
Enemy.hp = Enemy.hp - Player.damage
if Enemy.hp <0:
Enemy.hp = 0
print (& # 39; & # 39; & # 39; & # 39; & # 39;
The health of the enemy is now {Enemy.hp} & # 39; & # 39;)
time.sleep (.2)
other:
returns False
if Enemy.hp == 0: # Reset all enemies of health for next turn
if enemy == Dog:
Enemy.hp = 40
elif Enemy == Chat:
Enemy.hp = 20
elif Enemy == Monkey:
Enemy.hp = 55



def ():
while true:
global Enemies_Fought
global level
PLAY = input ("Want to fight a creature?"
1) yes
2) No & # 39; & # 39;)
if PLAY == "2":
print (& # 39; & # 39; & # 39;
You gave up. You lose. "
Pause
elif PLAY == "1":
ITEM_CHANCE ()
Player.hp = Player.hp
fight()
Enemies_Fought + = 1
Level + = .5
print (& # 39; & # 39; & # 39; & # 39; & # 39;
Your level is {Level} & # 39; & # 39; & # 39;)
if Level in Level_Bonus:
Player.hp = 100
Player.damage = Player.damage + 5
print (& # 39; & # 39; & # 39; & # 39; & # 39;
Your damage is {Player.damage}, and your hp has been restored. & # 39; & # 39; & # 39;)
if Player.hp <= 0:
print (& # 39; & # 39; & # 39; & # 39; & # 39;

You have reached the level: {Level}
You killed: {Enemies_Fought} enemies
& # 39; & # 39; & # 39;)
print (& # 39; & # 39; & # 39;
You're dead. Thank you for playing '#'
Pause
other:
print (& # 39; & # 39; & # 39;
Enter a valid option. & # 39; & # 39; & # 39;)


main ()