Install Python and Run python program on CMD
Today I will describe how to install Python in windows and run Python program in Command Prompt.
So, first of all you need to download python from python website(click here to download python3.8.5).
After downloaded the python you need to install python on your computer. At the time of installation you can select the path and that is the easier way to select the path.
If you select Add Python 3.8 to PATH then it automatically select the path, you don’t need to add the path manually.
After the installation process was finished then you need to open an IDE/Code editor and write a program.
print("Hello World")
This program will shows the output Hello World. After that you need to save the file and the file extension must be .py like file_name.py. This is probably the simplest Python program you’ll ever create, nevertheless it’s still a Python program.
After that, you need to open Command Prompt, then select the directory where you save that python file. Then you need to write python file_name.py
If everything is alright then the program shows the output:
This is easiest way to install python and run the python file. You can also see this Video
Hopefully this will be help you …Thank you!