HeadlinesBriefing HeadlinesBriefing.com

Python Interview Practice With pylings Exercises

Hacker News •
×

GitHub user thesayfulla launched pylings, a Python interview practice tool modeled after rustlings. The project offers 35 warm-up exercises and 20 interview-level tasks spanning easy to hard difficulty. Exercises cover strings, collections, functions, classes, iterators, decorators, and asyncio.

The tool auto-advances to the next exercise and re-runs tests upon saving. Navigation keys include n (next), h (hint), r (re-run), l (list), c (check all), x (reset), s (solution), and q (quit). Organized into folders for warm-ups, middle, middle-plus, senior, and staff levels, the exercises progress from basic concepts to context managers, single-flight caches, circuit breakers, and async maps.

Solutions reside in a parallel solutions/ directory. Users are advised not to open solutions until tests pass and to consider edge cases before coding. The tool supports running specific test files via `python3 -m unittest discover -s tests -p "test_ex05*" -v` and references solutions with `SOLUTIONS=1 python3 -m unittest discover -s tests`.

This resource provides structured Python practice for interview preparation without external dependencies.

Source: Hacker News · Summarized by HeadlinesBriefing