PyLings is a command-line Python learning and interview-practice project modeled on Rustlings. It provides 55 exercises for Python 3.14, with no external dependencies: 35 short warm-ups and 20 progressively harder challenges. Learners start with tasks involving strings, collections, functions, classes, iterators, decorators, and asyncio, then move through practical implementations such as an LRU cache, retry decorator, key-value transactions, rate limiter, event bus, circuit breaker, worker pool, and dependency-injection container. The most advanced exercises include a generator-based event loop and a small Pydantic-like model system.
Running `python3 -m pylings` opens the next exercise and automatically reruns its tests when the learner saves changes. Commands provide hints, navigation, test reruns, an exercise list, full-suite checks, resets, and access to solutions. The project also includes separate test and solution directories, plus interview-question files for middle and senior levels. Its learning approach emphasizes solving problems before consulting reference answers, identifying edge cases before coding, and discussing each exercise after the tests pass - connecting implementation practice with the reasoning interviewers expect. Exercises can also be checked directly with Python’s unittest tools, including an option to run tests against the reference solutions.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.