The standard Python interpreter uses the GNU Readline library and makes it easy to recall what you've previously typed. The up and down arrow keys allow you to move up and down through your input.