Category
functions
2 articles across 2 sub-topics
Beginner(1)
Functions in Python: Parameters, Return Values, and Scope
TLDR: Python functions are first-class objects, not just reusable blocks. They support keyword arguments, safe defaults with None, variadic *args/**kwargs, closures, and LEGB scope resolution. These five ideas are not advanced features — they are the...
•23 min read
Decorators(1)
Decorators Explained: From Functions to Frameworks
📖 The Copy-Paste Crisis: When Timing Code Invades Twenty Functions Sofia is three months into her first Python backend role. The team runs a performance review and discovers the data-processing API is slow. The tech lead asks her to add timing instr...
•26 min read
