SimpleTuts.com

Run Python

You can run Python on your computer using an Integrated Development Environment (IDE) like PyCharm or VSCode, a text editor like Sublime Text, a command line interface, or a Jupyter Notebook.

Check Python version and open Python prompt in a command line interface



To check Python version : py --version

Go to Python prompt : py

Create a folder to save Python programs



Change Directory : cd

Change to Parent Directory(..) : cd ..

Change to Root Directory(\) : cd \

Make Directory : mkdir

Open VS Code in Current Directory(.) : code .

Create and run a Python file



To run the Python file 'example.py' : py example.py


print("Hello World")
print("I am learning Python")
print("It has a simple syntax")
                
Python Online Compiler