Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

Python and FastAPI

Module 6 · Functions in depth

Function design from parameters to decorators: args/kwargs, lambdas, closures, scope, decorators, recursion and memoisation.

8 lessons Follow in order
Use the button below to sign in and unlock lessons.
Your path

Lessons in sequence

Work through these in order—each lesson builds on the previous one.

  1. Lesson 1 of 8

    6.1 Function anatomy: parameters and return values

    Enroll to open · 22 min read

  2. Lesson 2 of 8

    6.2 *args, **kwargs and defaults

    Enroll to open · 24 min read

  3. Lesson 3 of 8

    6.3 Lambdas and higher-order functions

    Enroll to open · 24 min read

  4. Lesson 4 of 8

    6.4 Closures and scope (LEGB)

    Enroll to open · 24 min read

  5. Lesson 5 of 8

    6.5 Decorators explained

    Enroll to open · 26 min read

  6. Lesson 6 of 8

    6.6 Decorators with arguments, stacking and class decorators

    Enroll to open · 28 min read

  7. Lesson 7 of 8

    6.7 Recursion basics

    Enroll to open · 26 min read

  8. Lesson 8 of 8

    6.8 Recursion, memoisation and its limits

    Enroll to open · 26 min read

← Back to course