Search for tag: "beginning"

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

Lesson 13.6 Assert Helpers

Sometimes we absolutely need to enforce all of our preconditions, and we cannot live with the compromises of the previous video. In this video we show how to use top-down design to give us more…

From  Hannah Lee on October 10th, 2020 11 plays

Lesson 13.5 Assert Trade-Offs

Preconditions can get really complicated, and sometimes it is unclear how to enforce all of the preconditions. In this video we talk about why it is okay to break up a precondition and…

From  Hannah Lee on October 10th, 2020 11 plays

Lesson 8.3 Test Scripts

A good testing plan has many, many test cases, and it can be really tedious to keep testing a function. That is why it would be ideal if we could automate the process. In this video, we introduce the…

From  Hannah Lee on September 24th, 2020 8 plays

Lesson 7.2 Specification Format

Now that you know why specifications are so important, it is time to write them. We have a very specific format that we want for our specifications, which is detailed in this video.

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

Lesson 6.1 Advanced String Expressions

We have seen that we create a string by writing it between two quotes. However, the quotes are never part of the string. What if we want the quotes to be part of the string? In this video we tackle…

From  Hannah Lee on September 16th, 2020 13 plays