I have written some code that I would like to run in the background as it is very time consuming (on the order of hours). I would normally run
python3 program_name.py >> output.log &
However the first steps of the program take user input. Is there a way to take user input and then run in the background if I close the terminal?