Having the user enter a bunch of stuff is cumbersome and annoying to work with.
Have an input file that can be read in by the program instead.
Then runs can be made and automated and checked much easier, simpler, and better.
Maybe give the user a single option to run with the python program, like:
python program.py input.txt
and then in the program you have:
inputs = sys.argv
then sys.argv[1] will be "input.txt" and direct it to read the input file.
Alternatively, you can do:
python program.py new
or something like that, and only then will the program ask for the inputs.
Having the user enter a bunch of stuff is cumbersome and annoying to work with. Have an input file that can be read in by the program instead. Then runs can be made and automated and checked much easier, simpler, and better.
Maybe give the user a single option to run with the python program, like:
python program.py input.txt
and then in the program you have: inputs = sys.argv
then sys.argv[1] will be "input.txt" and direct it to read the input file.
Alternatively, you can do:
python program.py new
or something like that, and only then will the program ask for the inputs.