-1

For example:

>>> 5 +++++ 5
10

Can anybody explain what is happening under the hood?

  • 1
    The unary operator `+` on an int has no effect. `+5` is equivalent to `5`. And `5 +++++ 5` is equivalent to `5 + (+(+(+(+5))))` – khelwood May 14 '22 at 22:10

0 Answers0