exec(open('file.py').read())
# Save the script in a file with .py extension
# run the script using the below command
python fileName.py
C:UsersParacha> python myfile.py
# recently the pyodyde project added a new library called pyscript, it's a
# beatuiful concep and I think there is a lot of potential
# btw, here's the link to their home page: https://pyscript.net/
#plz suscribe to my youtube channel -->
#https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
command = "print('Hi World')
exec(command)
#terminal, <python path> <python file>
/usr/bin/python /mydir/myscript.py
import os
os.sys("python script.py")