Search for tag: "position"

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

*Cornell Wellness Virtual Bootcamp Class #8

Round 1: 40/20 Round 2: 30/15 5 stations, 2 exercises/ station, repeat each exercise two times before moving on to the next station. After finishing the first round take a 2 minute break and move to…

From  Jeremy Stewart on October 30th, 2020 6 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

Cornell Wellness Virtual Bootcamp Class #6

5 Stations, 2 exercises at each station, repeat each exercise 2x's before moving to the next station. Round 1: 40/20, Round 2: 30/15 Push: Side to side push ups, Triceps Kickbacks Pull: Bicep…

From  Jeremy Stewart on October 22nd, 2020 6 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

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 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 on October 19th, 2020 23 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

Cornell Wellness Virtual Bootcamp Class #3

Round 1: 45/15 Round 2: 40/20 Round 3: 30/15 Round 4: 20/10 Exercises: 1.) Side to Side Bear Crawl 2.) Single-arm Clean + Press (R) 3.) Single-arm Clean + Press (L) 4.) Squats with Kick 5.) Bent…

From  Jeremy Stewart on October 13th, 2020 5 plays

10.12.20 Theory Seminar - Fall 2020 Shachar Lovett, UC San Diego

Zoom Recording ID: 97470844866 UUID: 9mq56B39QvqqAWq7KYEL1g== Meeting Time: 2020-10-12T20:04:41Z

From  Jordan Staiti on October 12th, 2020 2 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.5 Slice Visualization

Because lists are mutable, we need to explicitly draw their folder when we visualize them. In this video we show how slicing affects these folders.

From  Hannah Lee on October 10th, 2020 18 plays

Lesson 15.4 List Assignment

The big advantage that lists have over tuples is that they are mutable.In this video we show how to write assignment statements that modify the contents of a list.

From  Hannah Lee on October 10th, 2020 16 plays