I cannot say for sure without reading the code whether it will work, but here's the steps to run two pieces of code simultaneously:

Open File Explorer, and navigate to where you have saved the files.
Write cmd in the address bar of the file explorer.
When the prompt opens up, write the python command that you use to run the first file: py <filename>.py or python <filename.py> or python3 <filename.py>.
Repeat process 2 and 3, but this time, type the name of the second file.
I have 2 python files main.py and  test.py when I run main.py I want to run test.py and some point of time in new terminal because if I run in same terminal main.py got crashed and closed and program fails.
Any ideas how can I do this.
how to run 2 python files in one go?