HomeStudy GuidesPython
🐍 Python

Python Exam Study Guide

Nine topic guides covering everything tested on Python exams and technical interviews. Code examples, exam traps, and tips throughout.

Test your Python knowledge →Free · No sign-up
🔧
01· 6 min read

Python Functions Explained — Arguments, Return Values & Scope

Functions are the backbone of every Python program. Here's what exams actually test — from default argument traps to how *args and **kwargs work.

Read guide →
📋
02· 5 min read

Python Lists — Slicing, Methods & List Comprehensions Explained

Lists are the most-tested Python data structure. Here's what exams focus on — slicing syntax, mutating methods, and comprehensions.

Read guide →
📖
03· 5 min read

Python Dictionaries Explained — Methods, Iteration & Common Traps

Dictionaries are tested heavily in Python exams. Here's what you need to know — from key access to comprehensions to common gotchas.

Read guide →
🔄
04· 5 min read

Python Loops Explained — for, while, enumerate, zip & break/continue

Loops are fundamental and heavily tested. Here's what Python exams actually ask — from range() to enumerate() to the loop else clause.

Read guide →
🏗️
05· 7 min read

Python Classes and OOP Explained — __init__, Inheritance & Methods

Object-oriented programming is a major exam topic. Here's what you actually need to know — from __init__ to inheritance to dunder methods.

Read guide →
06· 5 min read

Python Error Handling — try/except/else/finally with Code Examples

Error handling is tested on every Python exam. Here's the full picture — what each clause does, when to use it, and the traps to avoid.

Read guide →
✏️
07· 5 min read

Python String Methods — Complete Reference with Code Examples

Strings are immutable and full of useful methods. Here's what Python exams test — from slicing to f-strings to the most common string methods.

Read guide →
📦
08· 5 min read

Python Modules and Imports Explained — import, from, __name__

Imports and modules are tested more than most people study them. Here's what you need to know — from import syntax to __name__ to packages.

Read guide →
📁
09· 5 min read

Python File I/O Explained — open(), read, write & Context Managers

File I/O is straightforward once you know the patterns. Here's what exams test — file modes, reading methods, and the with statement.

Read guide →
📋
10· 5 min read

Python List Comprehensions Explained — Syntax & Performance

A concise way to create lists — and a favourite topic on Python exams. Learn the syntax, filtering, nesting, and the generator expression gotcha.

Read guide →
🎀
11· 6 min read

Python Decorators Explained — @syntax, functools.wraps & Stacking

Decorators look like magic but they're just functions that wrap other functions. Here's everything exams ask — including the stacking order trap.

Read guide →
12· 5 min read

Python Generators Explained — yield, next() & Memory Efficiency

Generators produce values on demand instead of all at once — making them essential for large data and infinite sequences. Here's what exams actually test.

Read guide →
𝝀
13· 4 min read

Python Lambda Functions Explained — map, filter, sorted & Limits

Lambda creates a small anonymous function in one line. Useful with map, filter, and sorted — but limited by design. Here's what exams test.

Read guide →
🔒
14· 5 min read

Python Context Managers Explained — with Statement & Custom Managers

Context managers guarantee cleanup even when exceptions occur. Exams test __enter__/__exit__, exception suppression, and the contextlib shortcut.

Read guide →
🐍

Ready to prove it?

Take the free Python readiness test. Get a score from 0–100, a topic breakdown, and your exact weak areas — in under 20 minutes.

Take the free Python test →

Free · No sign-up · Instant results

← All study guides