Donald Bren School of Information and Computer Sciences ...

In this situation, Python will look at the object on the left side of the + operator, and determine the class (data type) it belongs to. Because x is an object of class int, Python will search the int class for a method called __add__(). Python will automatically invoke that method, and pass it TWO arguments. ................
................