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?
.replit file and then you can put any run command in it
for example in your
run = "python myfile.py"
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.