About
Python Under the Hood is a free, interactive course. You read short lessons, run and edit every example in a real Python interpreter in your browser (Pyodide, CPython compiled to WebAssembly), then check what you learned with quizzes and auto-graded exercises.
Credits
The course structure (four parts and their sections and lectures) follows Dr. Fred Baptiste's Python 3: Deep Dive series on Udemy:
Code examples are adapted from his python-deepdive repository. Lesson text, diagrams, quizzes and exercises are original to this site. Examples are updated for modern Python (3.13) where behavior has changed since the videos were recorded.
License
The python-deepdive repository is licensed under the GNU General Public License v3.0. This site, including its adapted code, is distributed under the same license (GPL-3.0-or-later).
Your progress
Completed lectures, quiz scores and exercise drafts are stored only in your browser (localStorage). Your progress and code are never sent to a server. Clearing your browser's site data resets your progress.
Analytics
To learn which lessons are useful, this site uses Vercel Web Analytics, which counts page views anonymously. It uses no cookies and doesn't track you across sites.