I would like to have a default value in the user input cursor.
option = input("Chose an option 1. run, 0. exit to run the output: ") or 1
I have tried the above code, but it didn't work for me.
When I run the below example code. Example:
option = input("Chose an option 1. run, 0. exit to run the output: ")
Expected output:
Chose an option 1. run, 0. exit to run the output: 1
By default 1 should be listed in the user input cursor, either user can enter directly or modify it before pressing enter key.