Master Python one program at a time.
17 topics · 78 hand-picked programs · a standardised Basic → Intermediate → Advanced path on every page.
Every topic
Standardised format
78+
Practice programs
17 areas
Concepts covered
All topics
Pick any topic — each page has Basic, Intermediate, and Advanced programs.
Python Basics
Get started with Python syntax, variables, input/output, how programs are executed, the main method, and your first programs.
Operators
Arithmetic, comparison, logical, bitwise, and assignment operators.
Control Flow
Make decisions with if / elif / else and master conditional logic.
Loops
Iterate with for and while loops, break, continue, and else clauses.
Strings
Work with text: slicing, formatting, and the most useful string methods.
Lists
Ordered, mutable sequences — the workhorse collection in Python.
Tuples & Sets
Immutable tuples and unique-element sets — when and why to use each.
Dictionaries
Key-value mappings — fast lookups and structured data.
Functions
Define reusable logic — arguments, return values, scope, lambdas.
Object-Oriented Programming
Classes, objects, inheritance, polymorphism, and encapsulation in Python.
File I/O
Read and write text, JSON, and CSV files safely.
Exception Handling
Handle errors gracefully with try / except / finally and custom exceptions.
Modules & Packages
Reuse code with imports, standard library highlights, and pip.
Comprehensions
Build lists, sets, and dicts in one expressive line.
Generators & Iterators
Lazy evaluation with yield, generator expressions, and itertools.
Decorators
Wrap functions to add cross-cutting behavior cleanly.
Regular Expressions
Pattern-match text with Python's re module.