We will see how to execute a basic program using python.

 

First we need to write a sample code and save the file with [dot] py extension.

Helloworld Using Python 3

print("Hello World!")

The above lines prints the Hello World! as an output.

 

What is Python Execution Process?


Python-execution-programming9

 

 

 

 

 

 

STEP 1: Open any text editing application like Notepad

STEP 2: Write the following statement 

print("Hello World!"

 STEP 3: Save the file using "hello.py" name without double quotes.

STEP 4: Open command prompt, goto the directory where you saved your hello.py and type the following command "python3 hello.py".

That's it. You got your first output.