run py file in python code example
Example 1: run py file in another py file
os.system('python my_file.py')
Example 2: how to run python program
move to the directory where your program lies
open cmd
python first_script.py(your file name)
os.system('python my_file.py')
move to the directory where your program lies
open cmd
python first_script.py(your file name)