Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 1 — IDLE: Python Interpreter

Lesson 7 of 50 in the free Python Programming notes on Siksha Sarovar, written by Rohit Jangra.

IDLE — Python Interpreter

IDLE (Integrated Development and Learning Environment) is the default IDE bundled with every Python installation.

Two modes of working in IDLE

  1. Interactive Mode (Shell) — statements are typed at the >>> prompt and executed immediately, one at a time. Ideal for testing small snippets.
>>> 2 + 3
5
>>> print("Hello, Python")
Hello, Python
  1. Script Mode (Editor) — a complete program is written in a .py file and executed as a whole using Run → Run Module (F5).
# hello.py
name = input("Enter your name: ")
print("Welcome,", name)

Run from the terminal:

python hello.py

The Python Interpreter

The interpreter reads Python source code and executes it directly — statement by statement — without needing a separate compilation step (though internally it compiles to bytecode first).

IDLE Features

  • Syntax highlighting — color-coded keywords, strings, comments.
  • Auto-completion — suggests function/variable names.
  • Auto-indentation — automatically indents after :.
  • Integrated debugger — step through code, inspect variables.
  • Call tips — shows function signatures while typing.

Checking installation

python --version
python3 --version

Getting help inside IDLE

>>> help(print)
>>> help(str)