In Minecraft, pressing the up arrow while in chat will repeat the last previously said message. How do you do the same with python, except repeating the last previously said line of code?
What do you mean by Alt + n for next command?Alt + p for previous command from history, Alt + n for next command from history.
This is default configure, and you can change these key shortcut at your preference from Options -> Configure IDLE