Search for tag: "colon"

Lesson 25.6 Complex Custom Error Types

When we were recording the video on custom error types, it ran quite long. So we decided to break it up into a second video. In this video we look at a slightly more complicated error type. We also…

From  Hannah Lee on November 12th, 2020 26 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 33 plays

Lesson 20.1 Class Definitions

In this video we show you the basic format of a class definition. However, classes can contain a lot of features, so our classes will be very simple for this demonstration.

From  Hannah Lee on October 27th, 2020 38 plays

Lesson 9.4 If-Elif Statements

In this video we introduce the final conditional statement, the if-elif-else statement. This allows you to chose between an arbitrary number of options.

From  Hannah Lee on September 24th, 2020 6 plays

Lesson 9.3 If-Else Statements

In this video we introduce the if-else statement. It is like the if statement, except that you now chose between two options.

From  Hannah Lee on September 24th, 2020 7 plays

Lesson 9.2 If Statements

In this video, we introduce this simplest form of conditional statement, the ifstatement. It allows us to skip over code if we do not wish to execute it.

From  Hannah Lee on September 24th, 2020 6 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 3.2 String Functions

Strings are very powerful type that we will use in the first major assignment. In this video we introduce the three main string functions that you should be aware of.

From  Hannah Lee on September 9th, 2020 9 plays