Take a look here Reserved identifiers python.
The special identifier _ is used in the interactive interpreter to
store the result of the last evaluation; it is stored in the
builtin module.
This behavior can be found on haskell's interactive environment ghci
also. Here instead of _
use it
.
Prelude> 2+2
4
Prelude> it
4