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 HelloWorld.py 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 HelloWorld.py 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 HelloWorld.py
This Python tutorial also useful for How to Run Your Python Scripts.
In the next tutorial we will discuss on Python data types.