python-interview-prep
A structured preparation tool for Python interview candidates, emphasizing practical skills over algorithm drilling. The format mirrors real interview scenarios: you’re given an existing codebase with unit tests, and your job is to read, debug, and fix the code.
What’s Inside
- Guides – seven commented Python scripts covering functions and closures, classes and OOP, unittest fundamentals, debugging strategies, mocking, clean code principles, and type hinting
- Exercises – 19 progressive debugging challenges across difficulty levels (beginner through advanced), plus specialized tracks for type hinting, mocking, OOP patterns, and test writing
- Solutions – walkthroughs explaining the diagnosis process for each exercise
Core Skills Practiced
- Reading and understanding unfamiliar code
- Systematically diagnosing issues within a test-driven workflow
- Articulating thought process and trade-offs
- Writing clear, maintainable code
Uses only the Python standard library (Python 3.8+, unittest, unittest.mock) with no external dependencies.