References: Advanced Functions and OOP¶
-
Lambda (programming) — Wikipedia https://en.wikipedia.org/wiki/Anonymous_function Explains anonymous (lambda) functions across programming languages, including Python's
lambdakeyword, with examples showing how short, inline functions are defined and used without a name. -
Closure (computer programming) — Wikipedia https://en.wikipedia.org/wiki/Closure_(computer_programming) Describes how closures capture variables from an enclosing scope, a key concept when writing factory functions and decorators in Python's advanced function model.
-
Decorator pattern — Wikipedia https://en.wikipedia.org/wiki/Decorator_pattern Covers the software design pattern that Python's
@decoratorsyntax implements, explaining how wrapping functions or classes adds behavior without modifying the original source code. -
Python Crash Course (2nd ed.) by Eric Matthes — No Starch Press, 2019. Chapters 9 covers classes, inheritance, and instances in a clear, beginner-friendly style that bridges the gap between simple functions and full object-oriented programs.
-
Learning Python (5th ed.) by Mark Lutz — O'Reilly Media, 2013. An exhaustive reference covering lambda expressions, closures, decorators, and the full Python OOP model including abstract base classes, ideal for students ready to go deeper.
-
Python Docs — Functional Programming HOWTO https://docs.python.org/3/howto/functional.html The official Python guide to functional-programming tools including
lambda,map,filter, and closures, with clear explanations and runnable examples directly relevant to this chapter. -
Python Docs — Classes (Tutorial) https://docs.python.org/3/tutorial/classes.html The authoritative tutorial section on Python classes covering inheritance, method overriding, and polymorphism — exactly the OOP concepts students encounter in this chapter.
-
Real Python — Python Decorators 101 https://realpython.com/primer-on-python-decorators/ A step-by-step walkthrough of how Python decorators work, starting from first-class functions and closures and building up to the
@syntax, perfect for students meeting decorators for the first time. -
Programiz — Python Inheritance https://www.programiz.com/python-programming/inheritance Interactive examples demonstrating single and multiple inheritance, method resolution order, and the
super()function, supporting the inheritance and polymorphism topics in this chapter. -
W3Schools — Python Lambda https://www.w3schools.com/python/python_lambda.asp A concise, beginner-friendly reference with Try-It-Yourself examples showing how to write and use
lambdafunctions in sorting, filtering, and short functional expressions.