How To Download, Install, and Use Python Idle Editor? – POFTUT

How To Download, Install, and Use Python Idle Editor?


Python is a popular programming language used by a lot of people from different professions. Python is a scripting language supported by different platforms and operating systems like Windows, Linux, MacOS, BSD, etc. Developing and running python can be done in different ways but in a practical way, we generally need some editor. Python Idle is a simple editor that provides basic features of advanced Integrated Development Environments.

Install For Windows

In Windows Idle is provided with the Python libraries and executable. In this tutorial, we will download Python 3.6 with Idle from the following link. We prefer 64 bit Python.

https://www.python.org/ftp/python/3.6.3/python-3.6.3-amd64.exe

Install For Windows
Install For Windows

Install For Ubuntu, Debian, Mint, Kali

We can install idle with different ways but the easiest and reliable way is using package manager named apt .

$ sudo apt install idle
Install For Ubuntu, Debian, Mint, Kali
Install For Ubuntu, Debian, Mint, Kali

Install For Fedora, CentOS, RHEL

We can install Python Idle in the Fedora, CentOS and RHEL distributions like below.

$ sudo yum install idle

Interactive Python Shell

The idle main window is an interactive Python shell. We can use this shell for simple and fast scripting. This console provides the following features.

  • Creating and saving script files
  • Editing script files
  • Creating new Python shells
  • Debugging Python scripts
Interactive Python Shell
Interactive Python Shell

Create New File

Idle opens Python shell by default. The shell can be used simple scripts or test but for bigger projects, we should create a python script file and save our code to this file. We can create a script file from File->New File menu like below. After completing coding we should save the file with a related name.

Create New File
Create New File

Run Script File

We will use the following code to run. We will use F5 in order to run the following code. An alternative way to run is by clicking Run->Run Module from the menu.

age = input("Say your age:")

print("You are "+age+" years old")

This will open Idle shell window and run our script in the Python shell as we can see below.

Run Script File
Run Script File

LEARN MORE  Creating and Running Script File in Linux Bash

2 thoughts on “How To Download, Install, and Use Python Idle Editor?”

  1. Pingback: Python Editors – without the bulllshit

Leave a Comment