Back to Learning Path
Loading...
Prior Knowledge needed: We recommend completing Python Fundamental first to ensure readiness for this course.

Mastering Python Functions
Beginner17 lessonsLoading...
About course
Learn the fundamentals of Functions in Python! This course explores everything from basic function definitions to advanced concepts like lambda functions and higher-order functions.
Learn how to structure functions, use arguments effectively, manage scope, and return results. Dive into special topics such as *args, **kwargs, nested functions, and using functions as objects. Perfect for enhancing your problem-solving skills and writing efficient, modular code!
Learn how to structure functions, use arguments effectively, manage scope, and return results. Dive into special topics such as *args, **kwargs, nested functions, and using functions as objects. Perfect for enhancing your problem-solving skills and writing efficient, modular code!
What you will learn
- Understand the definition and purpose of functions
- Break down the anatomy of a function
- Call functions effectively
- Work with positional and keyword arguments
- Set default parameter values
- Use arbitrary arguments (*args) and keyword arguments (**kwargs)
- Distinguish between local and global scope
- Understand the use of the global keyword
- Work with nested functions and nonlocal variables
- Use return to get function results
- Return multiple values from functions
- Differentiate between no return and None
- Understand the syntax of lambda functions
- Use lambda functions with map(), filter(), and sorted()
- Treat functions as objects in Python
- Pass functions as arguments to other functions
- Return functions from functions
Loading...
Course Overview
1
Lesson 1
Definition and purpose of Functions
2
Lesson 2
Anatomy of a Function
3
Lesson 3
Calling functions
4
Lesson 4
Positional and keyword arguments
5
Lesson 5
Default parameter values
6
Lesson 6
Arbitrary arguments (*args) and keyword arguments (**kwargs)
7
Lesson 7
Local vs. global scope
8
Lesson 8
Global keyword
9
Lesson 9
Nested functions and nonlocal variables
10
Lesson 10
Using return to get function results
11
Lesson 11
Returning multiple values
12
Lesson 12
No return vs. None
13
Lesson 13
Syntax of lambda functions
14
Lesson 14
Using lambda functions with map(), filter(), and sorted()
15
Lesson 15
Functions as objects
16
Lesson 16
Passing functions as arguments
17
Lesson 17