- Save the file as
filename.py
(py is the extension for python files) - Using cmd go to the path where the script is and run the below code
python filename.py
or
python3 filename.py
print('Hello World!')
filename.py
(py is the extension for python files)python filename.py
or
python3 filename.py
print('Hello World!')