Type CONTROL + P at the first prompt you get in Python interpreter.
If it beeps, command line editing and history substitution are supported.
Line editing and history substitution
If nothing appears to happen, or P is echoed, command line editing isn't available; you'll only be able to use backspace to remove characters from the current line.
Reference:
Using Python Interpreter
Subscribe to:
Posts (Atom)