Search for tag: "condition"

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

Lesson 26.4 While-Loop Patterns

In this video we introduce two new patterns for while-loops: using a goal condition and using a boolean tracking variable. We see how these patterns allow us to write functions that we could never…

From  Hannah Lee on November 12th, 2020 37 plays

Lesson 13.2 Error Responsibility

When we introduced specifications, we talked about responsibility; if there is a problem with a function, it is either the fault of the definer or the caller. In this video, we show how we read an…

From  Hannah Lee on October 10th, 2020 13 plays

Lesson 9.7 Conditionals & Local Variables

Python is unlike other languages in that it does not have a traditional notion of scope. You can create a variable inside of conditional, but still access that same variable outside of the…

From  Hannah Lee on September 24th, 2020 8 plays

Lesson 7.4 Preconditions Categories

In this video, we break our preconditions up into categories. The primary reason for this is to help us analyze a specification. It will also become extremely imporant when we talk about enforcement…

From  Hannah Lee on September 24th, 2020 10 plays

9/21 Theory Seminar - Fall 2020 Katya Scheinberg, Cornell University

Zoom Recording ID: 97470844866 UUID: 9LjyN51FSEW30S3OjSTN4Q== Meeting Time: 2020-09-21T20:05:36Z

From  Jordan Staiti on September 21st, 2020 16 plays