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.
-
Lesson 1 of 8
6.1 Function anatomy: parameters and return values
-
Lesson 2 of 8
6.2 *args, **kwargs and defaults
-
Lesson 3 of 8
6.3 Lambdas and higher-order functions
-
Lesson 4 of 8
6.4 Closures and scope (LEGB)
-
Lesson 5 of 8
6.5 Decorators explained
-
Lesson 6 of 8
6.6 Decorators with arguments, stacking and class decorators
-
Lesson 7 of 8
6.7 Recursion basics
-
Lesson 8 of 8
6.8 Recursion, memoisation and its limits