Get last result in interactive Python shell

Underscore.

>>> 5+5
10
>>> _
10
>>> _ + 5
15
>>> _
15

Leave a Comment