Python Installation



The first step to becoming a Python Developer. There are many methods to install Python.

Many PCs and Macs will have python already installed.

Go to this link: https://www.python.org/downloads/   and Download the latest version of Python.



How to Install Python on Windows Machine:

Step 1: Download Python from python.org

Step 2: Install the Python

Step 3: Add Python to system environment variables

After Install Python On Window

Now, check your Python on Windows machine, open Command Prompt,

How to Open your Command Prompt :

  1. Press  win ⊞   key
  2. Type cmd
  3. Press Enter

Mehod 1 :

In Command Prompt Type  Python  and Press Enter

Now, you can use as a Interpreter.

Example, We have calculated 


5 + 6


Method 2 :

Open Start Menu. Search Python and Click on your Download Python Version. This will take you to the Command Prompt for Python.



Whenever you are done in the python command line, you can simply type the following to quit the python command line interface:


exit()


Python IDLE

IDLE is Python's Integrated Development and Learning Environment. It allows programmers to easily write Python code. Just like Python Shell, IDLE can be used to execute a single statement and create, modify, and execute Python scripts.



If you use the Python Shell, you can use it as an interpreter. Otherwise, you can create a new file to write a Python program.

Later, you can save it and click ‘Run’ to run the program.


print("Hello World!")

To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line


python --version