Module 10
Functions
Learn function creation, parameters, arguments, scope, lambda, and special functions filter/map/reduce.
01
Python Functions — Complete Module Overview
Master Python functions from scratch: definition, parameters, scope, lambda, and special functions filter/map/reduce with real examples and quizzes.
02
Python Function Definition — 4 Approaches with Examples
Master four Python function styles: input from the call or inside the body, print vs return, tuple packing, and the production pattern used in APIs.
03
Python Parameters and Arguments — All 5 Types with Examples
Learn Python positional, default, keyword, *args, and **kwargs with diagrams, mapping tables, FastAPI-style patterns, playground, and quiz.
04
Python Scope — Local Variables, Global Variables, global Keyword and globals()
Understand where Python variables live, why UnboundLocalError happens, when to use the global keyword, and how globals() resolves name conflicts.
05
Python return Statement — Explicit, Implicit, and Multiple Return Values
Learn how return exits a Python function, sends values back to the caller, returns None implicitly, and packs multiple values into tuples.
06
Python Lambda Functions — Anonymous Functions Explained with Examples
Learn how Python lambda functions work, when to use them instead of def, and how they pair with sorted(), map(), and filter() in real apps.
07
Python Special Functions — filter(), map(), and reduce() with Examples
Master Python filter(), map(), and reduce(): extract matching values, transform every item, and combine a list into one result with lambda.