Search for tag: "lists"

Section 10/19/21: data structures for trees

Zoom Recording ID: 95071859677 UUID: I9oDNFt7Sfm4q0Y1iLzJTg== Meeting Time: 2021-10-19T18:31:00Z

From  Madeleine Udell 31 plays

e-list management - renewal process

Cornell e-lists must be renewed on an annual basis. Each year the owner and any secondary owners will be notified of which e-lists are active and you will have the option to either renew or…

From  Jenn Matthews 11 plays

Lesson28.8 List Comprehension (OPTIONAL)

This video is not optional because the material is advanced. It is optional because this video series has run long and this topic is less important for you to know. When we are done with out…

From  Hannah Lee 24 plays

Lesson 26.6 Mutable While-Loops

In this video we show that the one place we typically prefer while-loops is when we are modifying a list or other mutable iterable. While we did see how to do this with for-loops (by looping over…

From  Hannah Lee 65 plays

Zoom Oct. 22. More Recursion

The divide-and-conquer examples we saw in the previous session were on the easy side. In this session we look at some much more challenging examples.Included in this session is segregate, the most…

From  Hannah Lee 42 plays

Lesson 19.4 Nested Dictionaries

In this video we show that we can nest dictionaries just like we nested lists. In fact, a lot of real world data is represented this way. We show off a particularly complicated JSON file that…

From  Hannah Lee 70 plays

Lesson 19.1 Dictionary Expressions

In this video, we introduce a dictionary as a collection of key-value pairs. We also show how to write a dictionary expression in Python. It looks just like a JSON string, but without the quotes.

From  Hannah Lee 83 plays

Lesson 18.6 Mutable Table Functions

In this video we show how to write a mutable function on a table of data. Once again, this is very similar to writing an mutable function on a traditional list.

From  Hannah Lee 68 plays

Lesson 18.5 Immutable Table Functions

In this video we show how to write an immutable function on a table of data. In most ways this is no different than writing an immutable function on a list. Except that this time we may need multiple…

From  Hannah Lee 73 plays

Lesson 18.4 Nested Slicing

Slicing a list creates a copy. In this video we show what this means for nested lists. In particular, we show that sometimes a copy is not really a copy after all, and that we have to distinguish…

From  Hannah Lee 76 plays

Lesson 18.2 Nested Lists

In this video we show how to handle the special case when the objects inside of a list are other lists. In particular, we show how to chain together brackets to drill down into nested lists.

From  Hannah Lee 79 plays

Lesson 18.1 List of Objects

Lists require that we explicitly show the folder when visualize them. In this video we show what that means when a list contains other objects that have their own folders. The result is a chain of…

From  Hannah Lee 66 plays

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

Lesson 16.6 Mutable For-Loops

Lists are mutables and support mutable functions. Many of these mutable functions contain for-loops. As we show in this video, this changes how we write the for-loop. In particular, we will not use…

From  Hannah Lee 72 plays

Lesson 16.3 Accumulators

One of the techniques that we say in the previous video was the accumulator variable. In this video we show that this is a general technique used in a fruitful function that requires a for-loop.

From  Hannah Lee 94 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 71 plays