+ 4

How do I send the code on the python interpreter on the pc

5th May 2020, 3:09 PM
manuel omono
manuel omono - avatar
2 Antworten
+ 4
Thanks
6th May 2020, 4:33 PM
manuel omono
manuel omono - avatar
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()
5th May 2020, 11:46 PM
Slick
Slick - avatar