Search for tag: "tuples"

Zoom Oct. 13. Lists (and Sequences)

In this session we review the two new sequence data types: tuples, and lists. This is the last material on the first prelim.For the most part these are similar to strings, and so we will do a lot of…

From  Hannah Lee on October 19th, 2020 3 plays

Lesson 15.7 Mutable List Functions

Because lists are mutable, just like general objects, we can modify them in the body of a function. In this video we show how to write mutable list functions, which are (typically) procedures that…

From  Hannah Lee on October 10th, 2020 16 plays

Lesson 15.6 List Methods

Lists have many of the same methods as tuples. But since they are mutable, they have even more. In this video we show off some of the mutable methods of lists, which are methods that can alter the…

From  Hannah Lee on October 10th, 2020 14 plays

Lesson 15.2 Complex Tuple Expressions

Tuples are very, very similar to strings. In this video we explore this similarity, showing that they support many of the same operations and methods.

From  Hannah Lee on October 10th, 2020 15 plays

Lesson 15.1 Tuple Expressions

In this video we introduce the first new sliceable type, the tuple. We show why we need this new type, and why it is more flexible than a string.

From  Hannah Lee on October 10th, 2020 16 plays