Am new to coding, so started learning python and was learning about super() in classes and objects,tried to create a self made program give below but am getting python - init() missing 1 required positional argument error please help me part 1 part2
CodePudding user response:
Your parent class (myBrain) takes two arguments-- "name" and "disease". When you pass
super().__init__(disease)
In line 31 you're only passing in one. You need to pass in a "name" argument as well or just remove the condition in the parent class.