Skip to main content
MahiDev — Learn. Build. Become AI-ready.

Module 10

Functions

Learn function creation, parameters, arguments, scope, lambda, and special functions filter/map/reduce.

Intermediate4 hours 20 min7 lessons

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.

Intermediate5 hours

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.

Intermediate40 min

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.

Intermediate60 min

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.

Intermediate40 min

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.

Intermediate30 min

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.

Intermediate40 min

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.

Intermediate50 min