If I ask for user input, Python will let me use the arrow keys to move around what I typed and change it if necessary. For instance, when running the following program
user_input = input("file name -> ")
print(user_input)
I can use the left arrow to go back, change the 'G' to 'g'
file name -> thisIsAVeryLonGFileName.txt
and when I then hit Enter it prints
thisIsAVeryLongFileName.txt
Is there a way to prompt for user input with a default response already provided which then enables the user to use the arrow keys to modify the default response rather than having to type the whole response in? Basically, things should work just like above but without the user having to type anything in initially (instead it is provided by the program).