Answers for "run python.py file"

6

run py file in another py file

os.system('python my_file.py')
Posted by: Guest on April-13-2020
21

how to run a python script

# Save the script in a file with .py extension
# run the script using the below command
python fileName.py
Posted by: Guest on April-23-2020
2

run python.py file

# save a file in text editor with .py
# open terminal, and change directories
# run the following command:
python3 file.py
Posted by: Guest on December-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language