What is IDLE of python ?

Alok Sahu
3 min readOct 4, 2022

--

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.In IDLE, we write code line by line.

IDLE provides a fully-featured text editor to create Python scripts that include features like syntax highlighting, autocompletion, and smart indent. It also has a debugger with stepping and breakpoints features. This makes debugging easier.

write the features of python ?

There are many features in Python,

  1. Free and Open Source :-Python language is freely available at the official website of python.

2. Easy to code:-Python is a high-level programming language. Python is very easy to learn the language as compared to other languages like C, C#, Javascript, Java, etc.

3. Object-Oriented Language:-One of the key features of Python is Object-Oriented programming. Python supports object-oriented language and concepts of classes, object encapsulation, etc.

5. GUI Programming Support:-Graphical User interfaces can be made using a module such as PyQt5.

6. High-Level Language:-Python is a high-level language. When we write programs in Python, we do not need to remember the system architecture, nor do we need to manage the memory.

Explain three application of python ?

1. Web Development :-Python can be used to make web-applications. It provides libraries to handle internet protocols such as HTML and XML, JSON, Email processing, request, beautifulSoup, Feedparser, etc.

2. Desktop GUI:-We use Python to program desktop applications. It provides the Tkinter library that can be used to develop user interfaces. There are some other useful toolkits such as the wxWidgets, Kivy, PYQT that can be used to create applications on several platforms.

3. Game Development:-Python is also used in the development of interactive games. There are libraries such as PySoy which is a 3D game engine supporting Python 3, PyGame which provides functionality and a library for game development. Games such as Civilization-IV, Disney’s Toontown Online, Vega Strike etc. have been built using Python.

write about data type use in python ?

In programming, data type is an important concept.

1.Numeric Types: int, float, complex

2.Sequence Types:list, tuple, range

3.Mapping Type:dict

4.Set Types:set, frozenset

5.Boolean Type:bool

write about keyword & indentifiers of keyword ?

(i) Keywords:- keyword are some predefined and reserved words in python that have special meanings. Keywords are used to define the syntax of the coding. The keyword cannot be used as an identifier, function, and variable name.

example:-

Identifier :-Identifieris a name used to identify a variable, function, class, module, etc. The identifier is a combination of character digits and underscore. The identifier should start with a character or Underscore then use a digit. The characters are A-Z or a-z, an Underscore ( _ ) , and digit (0–9). we should not use special characters ( #, @, $, %, ! ) in identifiers.

write the path in python ?

Method 1: Find the path to the given file using Path.cwd()

example:-

from pathlib import Path

print(Path.cwd())

output:- C:\Users\int.alok.sahu

Method 2: Find the path to the given file using os.getcwd()

example :-

import os
print(‘Get current working directory : ‘, os.getcwd())

output:-Get current working directory : C:\Users\int.alok.sahu

--

--