Search for tag: "stack"

Lesson 25.3 Error Types and the Call Stack

After the last video, try-except looks less like an if-else statement and more like an if-elif-else statement. As we see in this video, this has profound effects on how errors interact with the call…

From  Hannah Lee on November 12th, 2020 34 plays

Lesson 25.1 Error Types

In this video we revisit error messages in Python and show how to read the error type. This type is a class, which means that you can construct your own error objects.

From  Hannah Lee on November 12th, 2020 35 plays

Lesson 17.6 Divide and Conquer Visualization

Just because you know how to write a divide-and-conquer algorithm does not mean you understand it. In this video we try to improve our understanding by visualizing divide-and-conquer. When we do this…

From  Hannah Lee on October 19th, 2020 41 plays

Lesson 17.3 Recursion and the Call Stack

Because a recursive function calls itself, it will have multiple call frames on the call stack. In this video we show exactly why we should be concerned about this and why it will affect our function…

From  Hannah Lee on October 19th, 2020 41 plays

Lesson 17.2 Recursive Functions

In this video we show how to take recursive definitions from mathematics and implement them in Python. To do this, we will need to have a function call itself in its own definition.

From  Hannah Lee on October 19th, 2020 41 plays

Lesson 14.3 Try-Except and the Stack

The except-portion of an try-except statement is only executed when there is an error/crash. But, as we have seen, errors can occur anywhere in the call stack. In this video we show how try-except…

From  Hannah Lee on October 10th, 2020 16 plays

Lesson 13.3 Assert Statements

Determining responsibility can get really tedious. In this video, we show how we can responsibility explicit by creating errors on purpose. We introduce the assert statement, which will allow us to…

From  Hannah Lee on October 10th, 2020 12 plays

Lesson 13.2 Error Responsibility

When we introduced specifications, we talked about responsibility; if there is a problem with a function, it is either the fault of the definer or the caller. In this video, we show how we read an…

From  Hannah Lee on October 10th, 2020 10 plays

Lesson 13.1 Error Messages

Most of you have seen error messages already, working on the course assignments. But what do these error messages mean? As we seen in this video, we could not really talk about them until now because…

From  Hannah Lee on October 10th, 2020 11 plays

Lesson 12.7 The Call Stack

In this video we look at the call stack in much more detail. In particular, we see that is possible to have more than one call frame active at a time, and the stack is the way these frames are…

From  Hannah Lee on October 2nd, 2020 13 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

Johnson COVID-19: Offshore Wind Energy: Gaining Momentum in the US, Randy Male (MBA '91)

From  Safiyyah Abdul Hamid on July 6th, 2020 9 plays

2017 REU Daniel Teal CNF HHMI KEP PARADIM REU Nano-Convocation

From  James Overhiser on February 18th, 2019 6 plays

2017 REU Dante Avalos CNF HHMI KEP PARADIM REU Nano-Convocation

From  James Overhiser on February 18th, 2019 9 plays

2017 REU Monica Lopez Martinez CNF HHMI KEP PARADIM REU Nano-Convocation

From  James Overhiser on February 18th, 2019 1 plays