Search for tag: "errors"

Lesson 25.5 Custom Error Types

Now that we can raise an error of any type, it is time to make our own error types. In this video we show that this is incredibly simple, and needs almost no code.

From  Hannah Lee on November 12th, 2020 35 plays

Lesson 25.4 The raise Statement

Up until now, the only way that we knew how to create an error is with an assert statement. But these always create errors with the type AssertionError. In this video we show how to create errors…

From  Hannah Lee on November 12th, 2020 38 plays

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 37 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 39 plays

Lesson 10.3 PseudoCode

In this video we introduce pseudocode, which is a step-by-step English description of what we want to do. The goal is provide an outline that we convert into Python later.

From  Hannah Lee on October 2nd, 2020 2 plays

Lesson 10.1 Algorithms

In this video we introduce the notion of an algorithm, which is an is a way of describing code (or any process) that is not limited to a specific programming language. You should always develop an…

From  Hannah Lee on October 2nd, 2020 5 plays

Lesson 8.1 Testing Plans

Before you start testing, you must have a testing plan. In this video we explain what these are, and how they fit into the software development process.

From  Hannah Lee on September 24th, 2020 9 plays

Lesson 1.3. Float Expressions

Integers are not the only number type in Python. There is also the float type, which is the set of real numbers. Floats can do just about everything that integers So why then does Python need a…

From  Hannah Lee on September 4th, 2020 14 plays

CNF 35th Anniversary Morning Talks

Roger Howe (Stanford) Neil Gershenfeld (MIT)

From  Karlis Musa on February 19th, 2020 19 plays