Search for tag: "module"

Digital Life Seminar | Julia Stoyanovich

Zoom Recording ID: 94971390717 UUID: TgBOKe+LTKmLvAHwxhRK9g== Meeting Time: 2021-02-25T16:43:54Z

From  Michael Byrne on February 25th, 2021 10 plays

D&D Monthly

Zoom Recording ID: 92019047216 UUID: SpGL1LLwT+iZwDBH9xtVUg== Meeting Time: 2020-12-11T13:57:09Z

From  Irina Zhankov on December 11th, 2020 0 plays

Lesson 30.7 Quicksort

The partition algorithm breaks up the list into two kind-of-sorted portions. In this video, we show how to use this fact with divide-and-conquer to implement a new sorting algorithm: quicksort. For…

From  Hannah Lee on December 10th, 2020 9 plays

Lesson 30.5 Selection Sort

In the previous video we saw that insertion sort is not an ideal sorting algorithm. In this video we try our hand at another algorithm: selection sort. This is another simple algorithm that may be…

From  Hannah Lee on December 10th, 2020 9 plays

Lesson 29.7 Time Budgeting (OPTIONAL)

This video is not optional because the material is advanced. It is optional because it is not relevant for the final assignment. However, you may be interested in this video if you want to see…

From  Hannah Lee on December 3rd, 2020 11 plays

Lesson 28.7 Iterator Chaining

Generators take iterators as input, but they also produce one as output. In this video we show how to chain iterators together, doing complex operations on our data.

From  Hannah Lee on December 3rd, 2020 22 plays

Lesson 26.7 Convergent While-Loops

In this video we show one of the most powerful while-loop techniques: computing to convergence. Convergence is a concept that most students learn in Calculus, and so we will use a little Calculus in…

From  Hannah Lee on November 12th, 2020 40 plays

Lesson 26.5 While-Loops vs For-Loops

We can always replace for-loops with while-loops, but should we? In this video we talk about the trade-offs of the two control structures and why it might be better to use over the other.

From  Hannah Lee on November 12th, 2020 36 plays

Lesson 24.2 The isinstance Function

In this video, we show that we can solve the problem of strict typing by using the isinstance function. This function will be our preferred way for enforcing preconditions going forward.

From  Hannah Lee on November 12th, 2020 31 plays

SOIL Seminar: Interface Types Introduction and Update

Title: Interface Types Introduction and Update Speaker: Luke Wagner—Fastly Summary: The presentation will recap the motivation and requirements for the Interface Types proposal as well as the…

From  Ross Tate on November 9th, 2020 57 plays

Lesson 23.8 Properties (OPTIONAL)

This video introduces an advanced topic that is completely optional and will not appear on any exam. Classes like RGB and Point3 appear to enforce their invariants without any getters and setters.…

From  Hannah Lee on November 8th, 2020 10 plays

Lesson 22.8 Subclass Initializers

In this video we show that thte primary purpose of the super function is in the initializer method of the subclass. That is because we cannot guarantee that all of the attributes for the parent class…

From  Hannah Lee on November 8th, 2020 31 plays

Lesson 22.4 The Subclass Hierarchy

Since every class other than object must be a subclass of another class, this can lead to some interesting “family trees” of classes. In this video we look at Kivy classes, and see how…

From  Hannah Lee on November 8th, 2020 31 plays

Zoom Oct. 29. Classes

In this presentation, we review the class definition. We look at both the syntax (what must be present for the definition to work) and the semantics (how it is processed in Python).Most of this class…

From  Hannah Lee on October 30th, 2020 7 plays

Lesson 20.9 Optional Arguments

Unlike other programming languages, a Python class has only one constructor, If we want to give the user more flexibility when creating objects, we should make certain arguments optional. In this…

From  Hannah Lee on October 27th, 2020 35 plays

Lesson 20.8 The None Value

We have seen the None value used in several previous videos. But in this video we finally introduce it formally. In particular, we show why it is so commonly used in object initialization.

From  Hannah Lee on October 27th, 2020 38 plays