Learn Python step by step,
from basics to expert.
62 topics across 6 levels. Every lesson has clear notes, worked examples, a live Python playground and a quick quiz to lock it in.
L1Foundations
0/8 doneVariables, numbers, strings, booleans, I/O.
L2Control & Collections
0/8 doneif/for/while, lists, tuples, dicts, sets.
L3Functions & Modules
0/10 doneFunctions, args, lambdas, scope, packages.
L4OOP & Errors
0/8 doneClasses, inheritance, dunder, exceptions.
L5Intermediate/Advanced
0/9 doneIterators, generators, decorators, typing.
L6Expert
0/7 doneAsync, GIL, metaclasses, memory, performance.
Interview preparation
Module — Core Technical Interview Q&A (Top Questions & Answers)
6 questions · 0 completed · 0%
Module — Core Technical Interview Q&A (Top Questions & Answers)
6 questions · 0 completed · 0%
Beginner · Objects
Why can equal Python lists be different objects?
== compares values through equality methods; is compares identity. Two separately created lists can contain the same values without sharing storage.
Basic · Functions
Why does a default list remember previous function calls?
Default argument expressions are evaluated when the def statement runs, not on each call. A mutable default therefore belongs to the function and is shared across calls.
Intermediate · Iteration
How does a generator retain state without storing the entire result?
Calling a generator function creates an iterator without running its body immediately. next() resumes execution until yield, which returns a value and suspends local state.
Advanced · Concurrency
How should you choose threads, processes or asyncio for a slow service?
Measure whether the workload waits on I/O or executes Python CPU work. Conventional CPython allows one thread at a time to execute Python bytecode because of the GIL.
Expert · Production debugging
Why can a service leak memory even when reference counting works?
A leak can be reachable data that the application no longer needs: unbounded caches, retained request objects, callback registrations and global collections are common causes.
Architect / Specialist · Architecture
How would you design a cancellation-safe bounded async worker service?
Choose bounded admission, worker count, timeout and retry policies before adding concurrency. A bounded asyncio.Queue prevents producers from accumulating unlimited pending payloads.
Module — Coding Interview Problems & Solutions (Hands-on)
6 questions · 0 completed · 0%
Module — Coding Interview Problems & Solutions (Hands-on)
6 questions · 0 completed · 0%
Beginner · Strings
Reverse a sequence of Unicode code points
Return the code points of a string in reverse order.
Basic · Hashing
Return indices of a pair with a target sum
Return the first pair found in left-to-right scanning whose values sum to target, or an empty list.
Intermediate · Sliding window
Longest substring without repeated code points
Return the length of the longest contiguous substring with unique code points.
Advanced · Intervals
Merge closed overlapping intervals
Return sorted disjoint closed intervals covering exactly the input intervals; touching endpoints merge.
Expert · Data structures
Implement a bounded least-recently-used cache
Implement get and put with eviction of the least recently used key when capacity is exceeded.
Architect / Specialist · Production streaming
Build a bounded JSON-lines record parser
Yield (line_number, object) for nonblank JSON-object lines; fail with a line-specific error on oversized, invalid or non-object records.
Can't find a Python topic you need for exams or placements? Request it and we'll add it.