class PartyAnimal: x = 0 name = "" def __init__(self, nam): self.name = nam print(self.name, "- utworzenie") def party(self) : self.x = self.x + 1 print(self.name, "- zliczenie imprezek -", self.x) class FootballFan(PartyAnimal): points = 0 def touchdown(self): self.points = self.points + 7 self.party() print(self.name, "punkty", self.points) s = PartyAnimal("Sally") s.party() j = FootballFan("Jim") j.party() j.touchdown()