GitHub - thesayfulla/pylings: Learn Python by fixing code. Exercises from easy to hard level
Learn Python by fixing code. Exercises from easy to hard level - thesayfulla/pylings
Learn Python by fixing code. Exercises from easy to hard level - thesayfulla/pylings
Python interview practice, like rustlings: from easy to hard.
Python 3.14 with no dependencies.
With uv (it fetches Python 3.14 for you if you don't have it):
uv run pylings
No uv? Any Python 3.14 works: python3 -m pylings
It opens the next exercise and re-runs its tests every time you save.
n nexth hintr re-runl listc check alls solutionq quit| Level | Folder | What's inside |
|---|---|---|
| Warm-up | exercises/0_warmups/ |
35 short "fix this" tasks: strings, collections, functions, classes, iterators, decorators, asyncio… |
| Middle | exercises/1_middle/ |
01–06: iterator utils, LRU cache, retry decorator, bug hunt, KV transactions, log report |
| Middle+ | exercises/2_middle_plus/ |
07–10: Money, rate limiter, event bus, task graph |
| Senior | exercises/3_senior/ |
11–17: contextmanager, single-flight cache, circuit breaker, external sort, async map, worker pool, bug hunt |
| Staff | exercises/4_staff/ |
18–20: generator event loop, mini pydantic, DI container |
Solutions are in solutions/ (same layout). Interview questions are in questions/middle.md and questions/senior.md.
solutions/ until the tests pass.uv run -m unittest discover -s tests -p "test_ex05*" -v
Check the reference solutions:
SOLUTIONS=1 uv run -m unittest discover -s tests
Texto de github.com tal como lo publicó, leído de su página y mostrado aquí con el formato de El Autómata. El original, en github.com · Volver a la noticia de El Autómata