IDLE is Python’s Integrated Development and Learning Environment.
IDLE has the following features:
- coded in 100% pure Python, using the
- cross-platform: works mostly the same on Windows, Unix, and macOS
- Python shell window (interactive interpreter) with colorizing of code input, output, and error messages
- multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto-completion, and other features
- search within any window, replace within editor windows and search through multiple files (grep)
- debugger with persistent breakpoints, stepping, and viewing of global and local namespaces
- configuration, browsers, and other dialogs
The Python installer for Windows contains the IDLE module by default. But not for Linux, it needs to be installed explicitly.
IDLE can be used to execute a single statement just like Python Shell and also to create, modify, and execute Python scripts. IDLE provides a fully-featured text editor to create Python script that includes features like syntax highlighting, autocompletion, and smart indent. It also has a debugger with stepping and breakpoints features.
To start an IDLE shell, search for the same in Start.
You can write and execute the Python scripts in the IDLE shell. To execute a Python script, create a new file by selecting File -> New File from the menu. To run the script in the editor window, press F5. The IDLE shell will show the output.