Search for tag: "folders"

Lesson 25.1 Error Types

In this video we revisit error messages in Python and show how to read the error type. This type is a class, which means that you can construct your own error objects.

From  Hannah Lee on November 12th, 2020 33 plays

Lesson 23.3 Object Equality

Previously when we compared objects, we compared them attribute-by-attribute. That is because the meaning of == on objects is less clear. As we show in this video, that is because equality (and the…

From  Hannah Lee on November 8th, 2020 42 plays

Lesson 22.5 Name Resolution

We have long said that the dot (.) in Python means “inside of the folder”. But which folder? In this video, we show why subclasses makes this question a little less clear. When Python…

From  Hannah Lee on November 8th, 2020 26 plays

Lesson 22.2 Subclass Definitions

In this video we show how to define a subclass. It is exactly the same as defining a class, except that now we actually do something with the parentheses in the function header.

From  Hannah Lee on November 8th, 2020 23 plays

Lesson 20.6 Method Visualization

Methods definitions look just like function definitions, but we call them differently. In this video we show how to visualize a method call, and we see just how it differs from a function call.

From  Hannah Lee on October 27th, 2020 36 plays

Lesson 20.3 Classes and Attributes

The primary role of an object is to store attribute variables. In this video we demonstrate the easiest way to add attributes to an object. We see that we can also add attributes to class folders as…

From  Hannah Lee on October 27th, 2020 37 plays

Lesson 20.2 Class Visualization

Now that you know how to define a class, you need to understand how Python processes the definition. In this video, we see that Python handles it in much the same way, that it does function…

From  Hannah Lee on October 27th, 2020 42 plays

Lesson 18.4 Nested Slicing

Slicing a list creates a copy. In this video we show what this means for nested lists. In particular, we show that sometimes a copy is not really a copy after all, and that we have to distinguish…

From  Hannah Lee on October 27th, 2020 28 plays

Lesson 18.3 Tables

A table of data is one that is divided up into regular rows and columns. In this video we show how to represent a table as a two-dimensional nested list. While there are alternate ways of…

From  Hannah Lee on October 27th, 2020 23 plays

Lesson 18.2 Nested Lists

In this video we show how to handle the special case when the objects inside of a list are other lists. In particular, we show how to chain together brackets to drill down into nested lists.

From  Hannah Lee on October 27th, 2020 31 plays

Lesson 18.1 List of Objects

Lists require that we explicitly show the folder when visualize them. In this video we show what that means when a list contains other objects that have their own folders. The result is a chain of…

From  Hannah Lee on October 27th, 2020 22 plays

Lesson 15.5 Slice Visualization

Because lists are mutable, we need to explicitly draw their folder when we visualize them. In this video we show how slicing affects these folders.

From  Hannah Lee on October 10th, 2020 18 plays

Lesson 12.2 Memory Areas

In this video we introduce the three regions of memory in Python: global space, the heap, and the call stack. We need all of these to understand how Python executes code.

From  Hannah Lee on October 2nd, 2020 12 plays

Lesson 12.1 Objects Everywhere

The biggest lie that we have told is that there is a difference between classes and the basic types. In this video we show that this is not true, and what ramifications this has for Python.

From  Hannah Lee on October 2nd, 2020 10 plays

Lesson 11.7 Mutable Functions

In the past if we wanted to do any significant computation, we needed a a fruitful function. Procedures are limited to testing or printing stuff out on the screen. But in this video we show how we…

From  Hannah Lee on October 2nd, 2020 7 plays

Lesson 11.5 Object Attributes

Objects are these folders that contain a portfolio of variables. These variables are called attributes. In thie video we talk about how we can access these attributes, or even change them.

From  Hannah Lee on October 2nd, 2020 5 plays