Search for tag: "variables"

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 11 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 12 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 5 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 7 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 3 plays

Lesson 9.7 Conditionals & Local Variables

Python is unlike other languages in that it does not have a traditional notion of scope. You can create a variable inside of conditional, but still access that same variable outside of the…

From  Hannah Lee on September 24th, 2020 3 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

Lesson 9.5 Conditional Expressions

While there are no more conditional statements, Python does support a conditional expression. In this video we introduce an expression that evalues to something different, depending upon the boolean…

From  Hannah Lee on September 24th, 2020 4 plays

CS 6120: Lesson 4: Data Flow

Music: https://www.bensound.comStock footage: https://www.videvo.net

From  Adrian Sampson on September 19th, 2020 40 plays

Zoom Sep. 15. User-Defined Functions

In this class we will review how functions are defined, and how we visualize their execution.We will spend more of the class talking about visualization than how to write function definitions in…

From  Hannah Lee on September 16th, 2020 7 plays

Lesson 6.2 String Slicing

Strings have a fundamental property that is not present in the other types so far. You can cut up a string into smaller bits or substrings. This is know as string slicing, and it is the focus of the…

From  Hannah Lee on September 16th, 2020 9 plays