Contributors like Allen Downey have converted many examples into interactive notebooks
Would one of those work for you?
Use a Debugger: Step through the complex examples (like descriptors or metaclasses) using a debugger to see exactly how the Python data model behaves.
"Fluent Python" is a book written by Luciano Ramalho, a Python expert with over 20 years of experience in the field. The book is designed to help you learn Python 3.x, with a focus on idiomatic and efficient coding practices. The 2nd edition of the book has been updated to cover the latest features of Python, including coroutines, async/await, and type hints.