0
Is it possible to open a file with code already in it?
Is there a way I can open a file with code already in it and see if it can run?
2 Respuestas
+ 4
You could import it as a module, which runs the code, but I think the "right way" would be by running the code from the command prompt.
You can use system method from module os to run commands in command prompt.
import os
os.system("py path&filename")
0
Thank you 🙏 Toni Isotalo