Sam Wederell16,040 Points
OOP Frustration - incorrect number of parameters
Keeps saying I have the incorrect number of parameters, 0 rather than 1 or 1 rather than 0. I have typed it from scratch to make sure. Any ideas?
class Liar(list): def __len__(self): super().__len__(self)
Pierre Guiglion11,583 Points
I don't think you need to repeat
self when you call
super(), since it already takes any arguments that were passed to the parent class'
def __len__(self): super().__len__()