How to Create and Execute Python Program

Last updated on

Program Execution in Python

Run Python Program

Python Program Execution

Python is an interpreted programming language, Python interpreter executed the Python Program (.py) files. Python interpreter run the program line by line from top to bottom.

Create the file file from text editor with the following code in that file.

print("Hello World")

Open the command prompt cmd.exe and then type the python it will output the text Hello World. If it displays the text, you successfully executed the Python program.

You can also execute the Python program with py

This Python tutorial also useful for How to Run Your Python Scripts.

In the next tutorial we will discuss on Python data types.