Object-oriented Python

Learn the how and why of Python objects — and write more powerful code in less time
Section 1: Introduction
01 Welcome
3 mins
02 What is object oriented programming?
9 mins
Section 2: Defining a class
03 What are Python objects?
16 mins
04 Methods vs. functions
6 mins
05 The simplest Python class
9 mins
06 Adding attributes
5 mins
07 __init__
9 mins
08 __init__ and parameters
6 mins
09 More examples of objects
10 mins
10 Class exercises
5 mins
exercises-1.txt
1022 Bytes
11 Class exercise solutions
14 mins
Section 3: Methods
12 Methods
10 mins
13 Method examples
12 mins
14 Method exercises
6 mins
exercises-2.txt
1016 Bytes
15 Method exercise solutions
27 mins
16 Visualizing methods
6 mins
Section 4: Class attributes
17 Classes vs. functions
7 mins
18 Class attributes
15 mins
19 Class attribute exercises
4 mins
exercises-3.txt
622 Bytes
20 Class attribute exercise solutions
8 mins
Section 5: Inheritance
21 Basic inheritance
13 mins
exercises-4.txt
605 Bytes
22 Inheritance exercises
3 mins
23 Inheritance exercise solutions
10 mins
24 More on inheritance
10 mins
Section 6: Magic methods
25 len
5 mins
26 __str__ and __repr__
8 mins
27 Magic method exercises
4 mins
exercises-5.txt
923 Bytes
28 Magic method exercise solutions
13 mins
29 Magic methods everywhere
7 mins
Section 7: Summary project
30 Summary exercise
6 mins
exercises-6.txt
960 Bytes
31 Summary exercise solution
17 mins
Section 8: Conclusion
32 Summary
4 mins
Resources
Python objects.ipynb
102 KB
11 Objects.pdf
112 KB