Search for tag: "parameters"

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 32 plays

Lesson 20.7 Intializers

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…

From  Hannah Lee on October 27th, 2020 39 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.5 Method Definitions

In addition to attributes, objects also have methods. In this video, we show how to add a method definition to a class. For the most part, it is as simple as indenting a function definition inside of…

From  Hannah Lee on October 27th, 2020 37 plays

Lesson 20.4 Classes Specifications

Classes are something we can define. That means we need a specification to tell us what it means for a definition to be correct. In this video we cover the basics of a class specification, and show…

From  Hannah Lee on October 27th, 2020 35 plays

Lesson 19.8 Keyword Expansion (OPTIONAL)

This video introduces an advanced topic that is completely optional and will not appear on any exam. Keyword expansion is the dictionary version of tuple expansion. It is used in modules like Kivy to…

From  Hannah Lee on October 27th, 2020 3 plays

Lesson 16.8 Tuple Expansion (OPTIONAL)

This video introduces an advanced topic that is completely optional and will not appear on any exam. You might have noticed that some functions, like max can take an arbitrary number of arguments. In…

From  Hannah Lee on October 19th, 2020 8 plays

Lesson 15.7 Mutable List Functions

Because lists are mutable, just like general objects, we can modify them in the body of a function. In this video we show how to write mutable list functions, which are (typically) procedures that…

From  Hannah Lee on October 10th, 2020 16 plays

CAM Colloquium Talk Jasper Weinburd, Oct 2, 2020

Zoom Recording ID: 95217932087 UUID: QWUMDfecQ3ivOcn6s/c3tw== Meeting Time: 2020-10-02T19:19:00Z

From  Erika Fowler-Decatur on October 5th, 2020 6 plays

Lesson 12.6 Global Variables

With both modules and function definitions, we saw that global variables are incredibly important. But most of our code is inside of function definitions, and therefore executed inside of call…

From  Hannah Lee on October 2nd, 2020 11 plays

Lesson 12.5 Functions as Variables

If function definitions are objects, then that means we can compute with them like any other object. In this video we show what happens when we assign a function definition to a variable, or why we…

From  Hannah Lee on October 2nd, 2020 12 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.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 9.6 Conditionals & Call Frames

Conditionals are typically used inside of function definitions. So how do they affect the way that we draw call frames. We address this issue in this video. You should pay close attention to the…

From  Hannah Lee on September 24th, 2020 5 plays

Deidre Grogan 2020 REU final presentation

Zoom Recording ID: 97214601225 UUID: fKT+tB9xS9G0Vwu20ZfE7Q== Meeting Time: 2020-08-06T16:51:44Z

From  James Overhiser on August 12th, 2020 5 plays