class person: def __init__(self, name, health, attack, defense): self.name = name self.health = health self.attack = attack self.defense = defense def print(self): print(self.name, self.health, self.attack, self.defense) def attacked(self, hitpoints): print(self.name, 'attacked...') self.health -= hitpoints print('New health =', self.health) def dead(self): if self.health <= 0: return True else: return False import random class wizard(person): def __init__(self, name): super(wizard, self).__init__('wizard:'+name, 10, 20, random.randint(5, 10))