Search for tag: "variables"

3.19.21 AI Seminar - Spring 21: Lucas Mentch, University of Pittsburgh

Zoom Recording ID: 94765771101 UUID: VB8V4V3dSAGYQagtr1etgQ== Meeting Time: 2021-03-19T15:14:36Z

From  Jordan Staiti on March 19th, 2021 4 plays

Lesson 27.2 Animation Frames

The while-loop that drives the game is hidden. This is going to create some interest challenges, particularly when you need variables that carry over from animation frame to animation frame. In this…

From  Hannah Lee on November 30th, 2020 45 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

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 43 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 19 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 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 23 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 16 plays

Lesson11.3 Object Visualization

Visualization is a reoccuring theme in this course. In this video we introduce a brand new visualization framework to help us understand how objects work. This new folder metaphor will become…

From  Hannah Lee on October 2nd, 2020 12 plays

Lesson 10.5 Helper Functions

In the string videos we talked about the backwards approach to function design. Unforunately, this technique does not combine well with iterative testing. In this video we look at an alternative…

From  Hannah Lee on October 2nd, 2020 13 plays