Python & Java, in depth
Every feature. Real code.
Real output.
Each topic here was actually executed — Python 3.12 and OpenJDK 21 — and the recorded output is exactly what came back, not a description of what “should” happen. Every topic also carries an interview angle and an industry-practice note, and Python topics get a live, editable playground powered by Pyodide, running real CPython in your browser.
40
topics written
Python
A. Object model, identity & memory
3 topicsB. Iteration & generators
3 topicsC. Functions & closures
4 topicsD. Classes & OOP internals
5 topics@property,@staticmethod,@classmethod-- and the descriptor protocol underneath- The
__eq__/__hash__contract __repr__vs__str__, and why every class should define__repr__- Context managers:
__enter__/__exit__,contextlib.contextmanager,ExitStack - Dataclasses:
field(default_factory=...),__post_init__,frozen=True, generated__eq__