In many symbolic math systems, such as Matlab or Mathematica, you can use a variable like Ans or % to retrieve the last computed value. Is there a similar facility in the Python shell?
Ans
%
Underscore.
>>> 5+5 10 >>> _ 10 >>> _ + 5 15 >>> _ 15
1.4m articles
1.4m replys
5 comments
57.0k users