Search for tag: "types"

Lesson 21.2 Interface Design

When designing a class, we need to come up with the interface first. In this video we talk about how to do that. We approach this problem returning to our understanding of types: a collection of…

From  Hannah Lee on October 30th, 2020 2 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 7 plays

Clip of From Stream To Table – Catching, Preparing & Cooking Local Fish

Zoom Recording ID: 93517524751 UUID: LBaBZrmlQXqWdDG5n+tcog== Meeting Time: 2020-07-16T16:51:44Z

From  Amy Sabattis on October 22nd, 2020 1 plays

Lesson 17.4 Divide and Conquer

Recursion has many, many uses. But one of the most popular applications is divide-and-conquer. In this video we introduce this new concept and show how we will use to solve several problems on…

From  Hannah Lee on October 19th, 2020 25 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 14 plays

Lesson 15.4 List Assignment

The big advantage that lists have over tuples is that they are mutable.In this video we show how to write assignment statements that modify the contents of a list.

From  Hannah Lee on October 10th, 2020 14 plays

Lesson 15.3 List Expressions

In this video we introduce the list, which looks almost exactly the the same as a tuple, except that it is written differently. Indeed, it supports many of the same operations as tuples. Together,…

From  Hannah Lee on October 10th, 2020 14 plays

Lesson 15.2 Complex Tuple Expressions

Tuples are very, very similar to strings. In this video we explore this similarity, showing that they support many of the same operations and methods.

From  Hannah Lee on October 10th, 2020 12 plays

Lesson 14.1 Try-Except Statements

In this video we intrduce a new control structure: the try-except statement. As we will see, it looks very similar to an if-else statment with some important differences.

From  Hannah Lee on October 10th, 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 9 plays

Lesson 11.4 Object Representation

We have said that objects are essentially folders? But the command line cannot display these folders using text. In this video, we talk about what the command line does show when we look at an object…

From  Hannah Lee on October 2nd, 2020 7 plays

Lesson11.2 Object Instantiation

Because classes are not built into Python, they do not have literals. So how do we create objects? In this video, we address instantiation which is how do this.

From  Hannah Lee on October 2nd, 2020 10 plays

Lesson 11.1 Objects and Classes

In this video we have to introduce some new terminology. We talk about classes, which are new types that are provided by modules (and therefore not built into Python). Objects are the values for…

From  Hannah Lee on October 2nd, 2020 8 plays

Lesson 10.3 PseudoCode

In this video we introduce pseudocode, which is a step-by-step English description of what we want to do. The goal is provide an outline that we convert into Python later.

From  Hannah Lee on October 2nd, 2020 2 plays

Cornell Wellness Cholesterol Education Campaign: What is Cholesterol?*

Join Wellness staff Jeremy Stewart for the first day of the Cornell Wellness Cholesterol Education Campaign, where he takes you through what cholesterol is.

From  Jeremy Stewart on September 14th, 2020 29 plays

Lesson 4.6 Interactive Scripts

Right now, we do not know a lot of Python commands, and so our scripts are pretty boring. But we can make them a lot more interesting with a function that we have already seen: the input function. In…

From  Hannah Lee on September 9th, 2020 8 plays