How to run another python file (not the main.py) ?
It surely simple to do this but I don't know how.
Can anyone help me?
Say you have a file called 'file2.py'. In your main.py file, type the line:
This runs the entire file as if it were a part of your main one, so any variables or functions in file2 will still be able to be referenced within main.py.