Repeat last command entered in python IDLE instead of copying it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Repeat last command entered in python IDLE instead of copying it

Hi when in IDLE, having a command line e.g. print("abc") and you want to repeat it at next prompt line, how can you do it? Is there a similar function key like F3 when you are at running CMD.EXE in windows? I tried up arrow, but it doesn' t work.

18th Oct 2018, 9:11 AM
Roberto
1 Answer
+ 2
Not exactly what you're looking for, but can use the underscore _ to regain the result of the last operation in IDLE. >>> 5*8 40 >>> _ 40 Other than that, copy/paste is probably the only way.
18th Oct 2018, 10:27 AM
Anna
Anna - avatar