Python Koans #
Python lessons wrapped in koans. Small puzzles, deep truths. Not your usual tutorial thread. Cross-posted from https://pythonkoans.substack.com
Understanding Python dataclasses and how fields determine equality and hashing.
Exploring the dangerous power of unquoted Python strings, and how they caused CVE-2024-9287
Understanding how Python's list comprehensions work under the hood
Understanding how Python's list comprehensions work under the hood
Exploring chained operations and order of evaluation in python expressions
Understanding Python’s rules for hashing
Navigating Python's import system and namespace packages
Understanding Late Binding in Python Closures
Exploring how functions in Python are treated as first-class citizens, and the untapped potential they hold.
Understanding Python’s LEGB rule, closures, and why variables sometimes behave like shadows.
Understanding how Python evaluates default arguments and why mutable defaults can carry unintended memory
Understanding the difference between identity and equality, and why it matters more than it seems.
Understanding truthiness, falsiness, and the quiet meaning of emptiness in Python