Skip to content

References: Advanced Functions and OOP

  1. Lambda (programming) — Wikipedia https://en.wikipedia.org/wiki/Anonymous_function Explains anonymous (lambda) functions across programming languages, including Python's lambda keyword, with examples showing how short, inline functions are defined and used without a name.

  2. 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.

  3. Decorator pattern — Wikipedia https://en.wikipedia.org/wiki/Decorator_pattern Covers the software design pattern that Python's @decorator syntax implements, explaining how wrapping functions or classes adds behavior without modifying the original source code.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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 lambda functions in sorting, filtering, and short functional expressions.