Clear notes · Basics to expert

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.

Start at the beginning
0 of 62 complete

L1Foundations

0/8 done

Variables, numbers, strings, booleans, I/O.

L2Control & Collections

0/8 done

if/for/while, lists, tuples, dicts, sets.

L3Functions & Modules

0/10 done

Functions, args, lambdas, scope, packages.

L4OOP & Errors

0/8 done

Classes, inheritance, dunder, exceptions.

L5Intermediate/Advanced

0/9 done

Iterators, generators, decorators, typing.

L6Expert

0/7 done

Async, GIL, metaclasses, memory, performance.

Interview preparation

Module — Core Technical Interview Q&A (Top Questions & Answers)

6 questions · 0 completed · 0%

Beginner: 1 · Freshers · 0 yearsBasic: 1 · Entry level · 0–1 yearsIntermediate: 1 · Junior · 1–3 yearsAdvanced: 1 · Mid-level · 3–5 yearsExpert: 1 · Senior · 5–8 yearsArchitect / Specialist: 1 · Specialist · 8–10+ years
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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%

Beginner: 1 · Freshers · 0 yearsBasic: 1 · Entry level · 0–1 yearsIntermediate: 1 · Junior · 1–3 yearsAdvanced: 1 · Mid-level · 3–5 yearsExpert: 1 · Senior · 5–8 yearsArchitect / Specialist: 1 · Specialist · 8–10+ years
  1. Beginner · Strings

    Reverse a sequence of Unicode code points

    Return the code points of a string in reverse order.

  2. 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.

  3. Intermediate · Sliding window

    Longest substring without repeated code points

    Return the length of the longest contiguous substring with unique code points.

  4. Advanced · Intervals

    Merge closed overlapping intervals

    Return sorted disjoint closed intervals covering exactly the input intervals; touching endpoints merge.

  5. 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.

  6. 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.