Why do I get a TypeError that says “takes no arguments (1 given)”? [duplicate]

Python implicitly passes the object to method calls, but you need to explicitly declare the parameter for it. This is customarily named self:

def updateVelocity(self):

Leave a Comment