+ 4
How do I send the code on the python interpreter on the pc
2 Respostas
+ 4
Thanks
0
You have to know where your .py files are located. If the path to python is already mapped dont worry about the os module.
Open cmd or terminal and type python. The python interpreter should load up. Then type:
import os #this module helps you get to a file
os.chdir(<path to .py files>) #this goes to the #directory of the .py files
You can now import any module you made and use it (using dot operator) example.
...
import my_module
my_module.a_function()