How can I run a python file through another python file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I run a python file through another python file?

I am trying to make a python code which can run other code, how can I do it?

9th Jul 2020, 11:40 AM
Blazko Reinn
Blazko Reinn - avatar
2 Answers
+ 1
what exactly do you mean? do you have an example? or mabey what are you trying to do? you can create, lets say, 5 modules. import every module into a single one, then have code that runs individual functions or methods from each module.
9th Jul 2020, 11:46 AM
Slick
Slick - avatar