class hero: def __init__(self): self.level = 1 self.hp = 300 self.attack = 20 yase = hero() print(yase.hp)