Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

How To Run Python on Windows

By | July 16, 2019

How To Run Python on Windows – The minimum requirement to do so is to Install Python on Windows. Here is a simple and easy to understand Python Installation Tutorial With Pictures.

How To Download and Install Python On Windows

You can easily download and install Python on Windows by following the steps described in the above mentioned Python Tutorial for Installation process.

You will download the Python setup file from Python.org. And double click this executable file to start installation. You will follow the steps and select options accordingly. This will lead to a successful installation of Python.

How To Use Python after Successful Installation

You can use IDLE which is a builtin Python Integrated and Development Learning Environment. IDLE is installed also, when you install the Python 3.7.

You can write simple Python scripts that is Python programs in the IDLE. The IDLE supports syntax highlighting for Python scripts, too.

Features of the IDLE

The IDLE has the following features:

  • The IDLE has been coded in 100% pure Python.
  • It is cross-platform: works mostly the same on Windows, Unix, and Mac OS.
  • Python shell window is an interactive interpreter. It supports writing and executing Python script commands on prompt easily.
  • Interactive Interpreter will also colorize the code input. It will show output and error messages too.
  • It supports auto complete, file new, open, save, save as, undo, cut, copy, paste, find and replace commands.

How To Use Python IDLE on Windows

You can easily start Python IDLE from Start button and search option as shown in the following figure.

Click on Python IDLE

Click on Python IDLE

This will open the IDLE – Python’s Integrated Development and Learning Environment. You can type Python scripts / statements in Python shell window (interactive interpreter). The shell will execute and provide output of the accurate statements you typed. If there is any syntax error in writing the Python statements, the interpreter will show the proper error message.

For example, type a=10 after interpreter ‘s command prompt. Press Enter, again type print(a) and press Enter key. The Interpreter will show output as 10 which is the value stored in variable ‘a’. When we typed a=10, Python will declare an int variable on the basis of the value assigned to the variable ‘a’. This process is explained in the following image:

a=10
print(a)
10

b=20
print(a+b)
30

Script execution in Python IDLE

Script execution in Python IDLE

Loading

One thought on “How To Run Python on Windows

  1. Pingback: Write and Run Sample Python Script | EasyCodeBook.com

Leave a Reply

Your email address will not be published. Required fields are marked *

Iconic One Theme | Powered by Wordpress