# Awaitable > Practical Python coding interview problems: asyncio, concurrency, rate limiters, retries, batching, streaming and file I/O. Each problem has a statement, starter code, a test suite and a reference solution. Code runs in the browser on CPython compiled to WebAssembly (Pyodide) and is never uploaded. No sign-up. Problems are numbered and graded easy, medium or hard. "Run" executes the example tests and "Submit" runs the full suite. Progress is stored only in the visitor's browser. More problems are written and open in order of reader demand; only open problems are listed here. ## Guides - [The Practical Coding Interview: What It Is and How to Prepare](https://awaitable.pages.dev/guides/practical-coding-interview/): How practical coding interviews differ from LeetCode rounds, the common formats, what interviewers grade, and a timed practice plan in Python. - [Python asyncio Interview Questions: The Patterns That Come Up](https://awaitable.pages.dev/guides/python-asyncio-interview-questions/): The asyncio patterns Python interviews test: gather vs TaskGroup, Semaphore, timeouts, cancellation and worker pools, with runnable 3.12 code. ## Problems - [01. Inference Log Summary (easy)](https://awaitable.pages.dev/problems/inference-log-summary/): Parse pipe-delimited inference logs, skip malformed lines, and report request counts, successes and average latency per model. - [06. Sliding Window Rate Limiter (medium)](https://awaitable.pages.dev/problems/sliding-window-rate-limiter/): Build a per-user sliding window log rate limiter that allows at most N requests in any window of W seconds. - [12. Inference Worker Pool (medium)](https://awaitable.pages.dev/problems/inference-worker-pool/): Run inference requests through a fixed pool of asyncio workers sharing one queue, isolate failures, and return results in input order. - [16. Async Circuit Breaker (hard)](https://awaitable.pages.dev/problems/async-circuit-breaker/): Implement an asyncio circuit breaker with closed, open and half-open states, a single recovery probe, and protection against stale in-flight calls. - [20. Dynamic Request Batcher (hard)](https://awaitable.pages.dev/problems/dynamic-request-batcher/): Group concurrent inference requests into batches that flush when full or when the oldest request has waited long enough, with cancellation and drain. - [21. Async TTL Cache with Request Coalescing (medium)](https://awaitable.pages.dev/problems/async-ttl-cache/): Build an asyncio cache whose entries expire after a TTL, where concurrent misses for the same key share one fetch that survives caller cancellation. - [22. Async Retry with Exponential Backoff (medium)](https://awaitable.pages.dev/problems/async-retry-backoff/): Retry a failing coroutine with capped exponential backoff, re-raise the last error, and never swallow cancellation. - [25. Async Request Deduplicator (hard)](https://awaitable.pages.dev/problems/async-request-deduplicator/): Collapse concurrent fetches for the same key into one shared call, with per-caller timeouts that never cancel the shared work. - [31. Chunked File Copy with Bounded Memory (easy)](https://awaitable.pages.dev/problems/chunked-file-copy/): Copy a file of any size in fixed-size chunks so memory stays flat, and refuse inputs that would destroy data. - [36. Delimited Stream Parser (medium)](https://awaitable.pages.dev/problems/delimited-stream-parser/): Turn an iterator of arbitrary byte chunks into delimited messages, handling messages and multi-byte delimiters split across chunks. ## Topics - [asyncio](https://awaitable.pages.dev/topics/asyncio/): Practise Python asyncio interview problems: TaskGroup, gather, Semaphore, Queue, timeouts and cancellation, running on real CPython in your browser. - [Batching](https://awaitable.pages.dev/topics/batching/): Python batching problems for practical interviews: flush by size or timeout, micro-batching async requests and chunking iterables. - [Caching](https://awaitable.pages.dev/topics/caching/): Python caching problems for practical interviews: LRU and TTL caches, functools.lru_cache, and async caches that coalesce requests. - [Cancellation](https://awaitable.pages.dev/topics/cancellation/): Practise Python asyncio cancellation: CancelledError, cleanup in finally, shield, and cancelling task groups cleanly, run in the browser. - [Checksums](https://awaitable.pages.dev/topics/checksums/): Practise Python checksum problems with hashlib and zlib: hashing large files in chunks, verifying integrity and content addressing. - [Circuit Breakers](https://awaitable.pages.dev/topics/circuit-breaker/): Practise implementing a circuit breaker in Python: closed, open and half-open states, failure thresholds and cool-down timing. - [Concurrency](https://awaitable.pages.dev/topics/concurrency/): Python concurrency problems for practical interviews: races, locks, bounded parallelism and coordination with asyncio primitives. - [Deduplication](https://awaitable.pages.dev/topics/deduplication/): Python deduplication problems for practical interviews: order-preserving dedup, idempotency keys, windowed dedup and content hashing. - [Design](https://awaitable.pages.dev/topics/design/): Python design problems for practical interviews: clean class APIs, state machines, dependency injection and code that extends well. - [File I/O](https://awaitable.pages.dev/topics/file-io/): Practise Python file I/O problems: streaming large files, atomic writes, pathlib, tail and log rotation, run in your browser. - [Generators](https://awaitable.pages.dev/topics/generators/): Python generator problems for practical interviews: lazy pipelines, yield from, itertools, and sync and async generator cleanup. - [Hash Maps](https://awaitable.pages.dev/topics/hash-map/): Practise Python hash map problems from practical interviews using dict, defaultdict and Counter for grouping, counting and indexing. - [Heaps](https://awaitable.pages.dev/topics/heap/): Python heap problems for practical interviews: top-k, priority queues, k-way merges and timers with heapq, run in the browser. - [Load Balancing](https://awaitable.pages.dev/topics/load-balancing/): Python load balancing problems for practical interviews: round robin, weighted and least-connections selection, and unhealthy backends. - [Memory](https://awaitable.pages.dev/topics/memory/): Python memory problems for practical interviews: bounded buffers, __slots__, generators over lists and constant-memory algorithms. - [Parsing](https://awaitable.pages.dev/topics/parsing/): Practise Python parsing problems from practical interviews: log lines, CSV, key-value configs and messy input, run in your browser. - [Queues](https://awaitable.pages.dev/topics/queue/): Practise Python queue problems from practical interviews with collections.deque and asyncio.Queue: FIFO buffers, backpressure, producers. - [Rate Limiting](https://awaitable.pages.dev/topics/rate-limiting/): Python rate limiter problems for practical interviews: token bucket, sliding window log and fixed window counters, tested in your browser. - [Retries](https://awaitable.pages.dev/topics/retries/): Practise Python retry problems: exponential backoff with jitter, retry decorators, idempotency and which errors to retry, in the browser. - [Scheduling](https://awaitable.pages.dev/topics/scheduling/): Practise Python scheduling problems: delayed and periodic jobs, priority ordering with heapq, cron-like timing and cancellation. - [Sliding Window](https://awaitable.pages.dev/topics/sliding-window/): Practise Python sliding window problems: time-based windows over events, rolling counts and rate checks with deque, run in the browser. - [Streaming](https://awaitable.pages.dev/topics/streaming/): Practise Python streaming problems: async generators, chunked processing, merging streams and bounded memory over large inputs. - [Timeouts](https://awaitable.pages.dev/topics/timeouts/): Python timeout problems for practical interviews: asyncio.timeout, wait_for, deadlines across retries and cleanup on expiry. - [Validation](https://awaitable.pages.dev/topics/validation/): Python validation problems for practical interviews: reject malformed records, check types and ranges, and report why input failed. - [Worker Pools](https://awaitable.pages.dev/topics/worker-pool/): Practise Python worker pool problems: asyncio.Queue with N workers, graceful shutdown, error handling and result ordering, in the browser. ## Optional - [About](https://awaitable.pages.dev/about/): How code runs locally in the browser, what is stored and what is counted. - [Full text](https://awaitable.pages.dev/llms-full.txt): Every problem statement and guide in one file.