def add (a, b): print (a+b)
I have this function inside a class and when I call it using object I am getting an error
Inside the class functions the first argument must be self
self
def add(self, a, b): print(self.a + self.b)