Intro Python: Functions

How to write effective functions in Python. This course reviews defining functions, types of parameters, variable scoping, and the use of functions as objects. Includes 4 hours of video and lots of hands-on exercises!
Introduction
01 Introduction.mov
3 mins
Section 2: Intro to functions
Functions, part 1 -- Intro to functions.ipynb
20 KB
02 What are functions?.mov
4 mins
03 Functions are objects.mp4
6 mins
04 Defining basic functions.mp4
6 mins
05 Functions return None by default.mp4
6 mins
Section 3: Simple parameters
Functions, part 3 -- Simple parameters.ipynb
24.5 KB
06 Return values
7 mins
07 Returning multiple values
4 mins
08 Docstrings
4 mins
09 Positional arguments
7 mins
10 Checking argument types
7 mins
11 Defaults and multiple defaults
8 mins
12 Exercises 1.mp4
3 mins
13 Exercise solutions 1.mp4
11 mins
14 Call by reference, or call by value?.mp4
8 mins
15 The perils of mutable defaults.mp4
7 mins
Section 4: Advanced parameters
Functions, part 4 -- Advanced parameters.ipynb
51 KB
16 *args.mp4
11 mins
17 Turning a sequence into arguments.mp4
5 mins
18 Keyword arguments with *args.mp4
3 mins
19 Exercises 2.mp4
3 mins
exercise-2.txt
1.22 KB
20 Exercise solutions 2.mp4
11 mins
21 Positional vs. keyword arguments.mp4
5 mins
22 **kwargs.mp4
5 mins
23 Avoiding repeated names.mp4
3 mins
24 Where do we use **kwargs?.mp4
6 mins
25 Exercises 3.mp4
2 mins
exercise-3.txt
968 Bytes
26 Exercise solutions 3.mp4
6 mins
27 Combining argument types.mp4
5 mins
28 Using ** when invoking functions.mp4
3 mins
29 Positional-only arguments.mp4
4 mins
Section 5: Variable scoping
Functions, part 5 -- variable scoping.ipynb
39 KB
30 Introduction to scoping.mp4
5 mins
31 Global variables.mp4
6 mins
32 Global variables from within functions.mp4
5 mins
33 Local variables.mp4
6 mins
34 Unbound locals.mp4
6 mins
35 The "global" declaration.mp4
5 mins
36 Using __main__ for global variables.mp4
5 mins
37 Modifying globals .mp4
5 mins
38 The builtins scope.mp4
12 mins
39 Exercises 4.mp4
2 mins
exercise-4.txt
699 Bytes
40 Exercise solutions 4.mp4
7 mins
Section 6: Advanced techniques
Functions, part 6 -- advanced techniques.ipynb
29.3 KB
41 Custom sorting.mp4
7 mins
42 Accepting functions as arguments.mp4
11 mins
43 Dispatch tables.mp4
8 mins
44 Exercises 5.mp4
2 mins
exercise-5.txt
724 Bytes
45 Exercise 5 solutions.mp4
10 mins
Section 7: Conclusion
46 Conclusion.mov
1 min