Mar-17-2020, 02:04 PM
Hello! I am a beginner and I need help. What's the problem with this syntex? Thanks for the help
class Alma def __init__(x): self.x = x def count(self,x): self.x = x+1 class ZoldAlma: def __init__(self, y=0): Alma.__init__(self, 3) self.y = y def count(self): self.y += 1 def main(): obj = ZoldAlma() obj.count() print(obj.x, obj.y) main()