I've tried to include a class object with a number, but I don't know how to add class objects with 2 numbers.
For example, consider the below code:
class A:
def __add__(self, b):
return something
I knew how to add with one number:
object = A()
print(object + 1)
But, how can I add them like this?
object = A()
print(object + 1 + 2)
Whether I need to use *args for the add class method?