PyLings is a newly released command-line tool designed to help developers practice Python programming and prepare for technical interviews. It provides a structured set of exercises, drawing inspiration from the Rustlings project, which offers a similar interactive learning environment for Rust.
The tool includes a total of 55 exercises: 35 warm-up problems and 20 interview-specific questions, ranging in difficulty from easy to hard. Users interact with PyLings by running `python3 -m pylings`, which opens the next exercise. The system automatically re-runs tests for the current exercise every time the user saves their code, providing immediate feedback.
Key commands within PyLings include `n` for next exercise, `h` for hints, `r` to re-run tests, `l` to list exercises, `c` to check all, `x` to reset, `s` to view solutions, and `q` to quit. Solutions are stored in a `solutions/` directory, and interview questions are categorized into `questions/middle.md` and `questions/senior.md`.
PyLings emphasizes interview preparation by advising users to consider edge cases before coding and to answer discussion questions provided at the end of each exercise after tests pass. This approach mirrors typical technical interview scenarios where understanding and explaining solutions are as important as writing correct code.
PyLings is built for Python 3.14 and has no external dependencies, making it easy to set up and use. Users can also run specific tests using `python3 -m unittest discover -s tests -p "test_ex05*" -v` or check reference solutions by setting an environment variable: `SOLUTIONS=1 python3 -m unittest discover -s tests`.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
PyLings, a new command-line tool, offers 35 warm-up exercises and 20 interview-style problems for Python 3.14. It provides a Rustlings-like interactive learning experience, automatically re-running tests upon file saves to help users practice and prepare for technical interviews.