Всем привет, вроде все правильно сделал но никак не хочет работать, подскажите в чем ошибка
class Hero:
def __init__ (self, hero_name,hero_class):
self.hero_name = hero_name
self.hero_class = hero_class
def info(self):
print(self.hero_name, self.hero_class)
class WarriorHero(Hero):
def __init__(self,hero_name,hero_class):
super().__init__(hero_name,hero_class)
def equipmentHero(self):
self.type_clothing = "heavy"
self.weapons_hero = "sword"
self.shield_hero = "yes"
def healthHero(self):
self.health_hero = 100
def printed(self):
print("""
name: {0},
Class character: {1},
Health: {2},
Weapon: {3},
Shield: {4},
Clothing: {5}
""" .format(self.hero_name,
self.hero_class,
self.health_hero,
self.weapons_hero,
self.shield_hero,
self.type_clothing ))
b = Hero("kyklaed","warrior")
b.info()
a = WarriorHero("kyklaed","warrior")
a.printed()