Azad Rasul




5- Run a Python program

Azad Rasul's photo
Azad Rasul
·Jun 26, 2021·

1 min read

Play this article

For short commands, we do not need to write scripts. We use command line: In the search window of Windows write:


Then click Enter to open command prompt.

To open Python, inside the command prompt write:

print("Hello World!")
### Hello World!

To close the Python use:


Write a simple python file

Open Notepad, inside notepad, write: print("Hello, World!"), then save it as:

To run a python file on the command line: Change the directory to the folder (e.i. Python38) that includes the file. then we use command: python

cd C:\Python38

### Hello, World!

helloworld is the name of the file.

Congratulations, you have written and executed your first Python program.

If you like the content, please SUBSCRIBE to my channel for the future content.

To get full video tutorial and certificate, please, enroll in the course through this link:

Share this