By default, repl runs files that are main.py but If I want to run someother file. How can I run it?
what you can do is put that file in a function and call it in main, I would say that is the easy whay.
To call a function in another file you have to do this in your main file or where you want to call it:
from example import *
example is the file you want to import where you have stored your function!
Hope it helped!
How to run files that are not named main.py?
By default, repl runs files that are main.py but If I want to run someother file. How can I run it?
Hello I have come to help!!
what you can do is put that file in a function and call it in main, I would say that is the easy whay.
To call a function in another file you have to do this in your main file or where you want to call it:
example is the file you want to import where you have stored your function!
Hope it helped!