All posts
9 min read
Python — Decorators
Learn Python decorators step by step: how to wrap functions to add behavior without modifying them, the @ syntax, decorating functions with arguments, class-based decorators, stacking decorators, and using functools.wraps.
9 min read
Python — Generators
Following the previous lesson on decorators, this post covers Python generators: what they are, how they save memory, and when to use them.
5 min read
Python — First-Class Functions
Learn what first-class functions are in Python: how to pass functions as arguments, return them from other functions, and store them in variables or data structures.