2 Respuestas
+ 3
The + operator calls the __add__ method. The __add__ method takes 2 arguments: object.__add__(self,other) or in this case: 6.__add__(3) which returns self - (-object) or 6 - (-3). Once it has been returned, the print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.
+ 1
Steven M Thanks