If you are like me who frequently use Python shell as a calculator, you can grab the last output by using _. This trick works in Jupyter Notebook as well.
_