3 ms·
Getting a bit off topic but useful. Input with history and editing: import readline while True: print(input('text>')) https://docs.python.org/3.8/
by tony-allan 5y ago
Getting a bit off topic but useful.
Input with history and editing:
import readline
while True:
print(input('text>'))
https://docs.python.org/3.8/library/readline.html https://docs.python.org/3.8/library/readline.html
- milliams 5y agoThat's really cool. I knew that Python had the `readline` module, but didn't know that it monkey-patched the `input` function to add functionality automatically.