Writing your own functions
User-defined functions
()
Strings in Python
Recapping built-in functions
Write a simple function
Single-parameter functions
Functions that return single values
Multiple parameters and return values
()
Functions with multiple parameters
A brief introduction to tuples
Functions that return multiple values
Bringing it all together
()
Bringing it all together (1)
Bringing it all together (2)
Default arguments, variable-length arguments and scope
Scope and user-defined functions
()
Pop quiz on understanding scope
The keyword global
Python's built-in scope
Nested functions
()
Nested Functions I
Nested Functions II
The keyword nonlocal and nested functions
Default and flexible arguments
()
Functions with one default argument
Functions with multiple default arguments
Functions with variable-length arguments (*args)
Functions with variable-length keyword arguments (**kwargs)
Bringing it all together
()
Bringing it all together (1)
Bringing it all together (2)
Lambda functions and error-handling
Lambda functions
()
Pop quiz on lambda functions
Writing a lambda function you already know
Map() and lambda functions
Filter() and lambda functions
Reduce() and lambda functions
Introduction to error handling
()
Pop quiz about errors
Error handling with try-except
Error handling by raising an error
Bringing it all together
()
Bringing it all together (1)
Bringing it all together (2)
Bringing it all together (3)
Bringing it all together: testing your error handling skills