|
Knight faculty, Jessica Sands (Multilingual Writing Specialist), David Faulkner (First-Year Writing Seminars Director), Tracy Carrick (Writing Workshop Director), and Kate Navickas (Cornell Writing…
|
|
Zoom Recording ID: 6588692464
UUID: MK1fFuOKRziZGDwAtcFlqQ==
Meeting Time: 2021-07-02T15:57:50Z
|
|
While generators are coroutines, the communication only goes one way: from the child to the calling parent. In this video we show how to reverse this communication, passing down information from the…
|
|
In this video we talk about two very famous generators: map and filter. We show how to use these to replace writing code with a for-loop.
|
|
Generators look like normal functions, but they do not behave like them. In this video we show how to visualize them, using the Python Tutor.
|
|
While-loops can do everything that a for-loop can (and more) but they are much harder to use. That is why, in this video, we talk about how to debug a while-loop before we talk about how to write…
|
|
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.…
|
|
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…
|
|
Sometimes you do not want to completely override a method. You just want to override part of it, or add a few extra features at the end. In this video, we introduce the super function which allows us…
|
|
Every class must be a subclass of something, and that parent class goes inside of the parentheses. That means that the word object we have been using in all of class definitions is actually a class.…
|
|
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.
|
|
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…
|
|
In this previous video we introduced the concept of getters and setters. But how do we force the user to use these when the attribute is so much simpler. In this video we talk about the concept of…
|
|
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…
|
|
In this video, we introduce the most important method definition in any class: the initializer. The initializer is responsible for creating all the attributes so that the user does not need to worry…
|
|
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.
|