Search for tag: "length"

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 on November 12th, 2020 31 plays

Lesson 26.3 While-Loop Ranges

While-loops require additional patterns beyond the simple accumulator pattern that we used in for-loops. In this video, we talk about the first such pattern, which is replacing the range iterator.…

From  Hannah Lee on November 12th, 2020 34 plays

Zoom Oct. 27. Nested Lists and Dictionaries

This presentation explores the last built-in (as opposed to user-defined) types in this course. These types are often used to store data in files.We actually had an (accidental) sneak peak at these…

From  Hannah Lee on October 27th, 2020 7 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 on October 27th, 2020 25 plays

Lesson 18.3 Tables

A table of data is one that is divided up into regular rows and columns. In this video we show how to represent a table as a two-dimensional nested list. While there are alternate ways of…

From  Hannah Lee on October 27th, 2020 23 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 on October 27th, 2020 31 plays

10.20 Theory Seminar - Fall 2020: Yanyi Liu, Cornell University

Zoom Recording ID: 97470844866 UUID: Rc1xL+sZRbmcGWwApOSxiQ== Meeting Time: 2020-10-19T20:00:54Z

From  Jordan Staiti on October 19th, 2020 16 plays

Zoom Oct. 15. For-Loops

In this session, we review the for-loop, which is the next control structure. This is the last control structure we will need for a while.For-loops are pretty easy to use in Python, and most students…

From  Hannah Lee on October 19th, 2020 6 plays

Lesson 16.5 Positional For-Loops

Sometimes we need to perform a calculation on a string, list, or tuple, but we do not want to loop over this value. Instead, we want to loop over the positions of the value. In this video we show why…

From  Hannah Lee on October 19th, 2020 27 plays

Lesson 15.3 List Expressions

In this video we introduce the list, which looks almost exactly the the same as a tuple, except that it is written differently. Indeed, it supports many of the same operations as tuples. Together,…

From  Hannah Lee on October 10th, 2020 16 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 14 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

Patrick Singleton 2020 REU final presentation

Zoom Recording ID: 97214601225 UUID: fKT+tB9xS9G0Vwu20ZfE7Q== Meeting Time: 2020-08-06T16:51:44Z

From  James Overhiser on August 12th, 2020 4 plays

Chase Hanson 2020 REU final presentation

Zoom Recording ID: 97214601225 UUID: fKT+tB9xS9G0Vwu20ZfE7Q== Meeting Time: 2020-08-06T16:51:44Z

From  James Overhiser on August 12th, 2020 3 plays

Jacob Steele 2020 REU final presentation

Zoom Recording ID: 97214601225 UUID: fKT+tB9xS9G0Vwu20ZfE7Q== Meeting Time: 2020-08-06T16:51:44Z

From  James Overhiser on August 12th, 2020 10 plays

Sophia Madelone 2020 REU final presentation

Zoom Recording ID: 97214601225 UUID: fKT+tB9xS9G0Vwu20ZfE7Q== Meeting Time: 2020-08-06T16:51:44Z

From  James Overhiser on August 12th, 2020 4 plays