Search for tag: "variable"

Lesson 9.10 Conditional Scripts

The only difference between a module and a script is how you run it. But we have seen Python files that do different things when you run them as a script or import them as a module. This is done with…

From  Hannah Lee on September 24th, 2020 1 plays

Lesson 9.9 Tracing Conditionals

Now that program structure and program flow are different, debugging is going to get a lot harder. In this video we introduce a new element of white box testing – the trace. You will need to…

From  Hannah Lee on September 24th, 2020 1 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 1 plays

Lesson 9.6 Conditionals & Call Frames

Conditionals are typically used inside of function definitions. So how do they affect the way that we draw call frames. We address this issue in this video. You should pay close attention to the…

From  Hannah Lee on September 24th, 2020 1 plays

Lesson 9.5 Conditional Expressions

While there are no more conditional statements, Python does support a conditional expression. In this video we introduce an expression that evalues to something different, depending upon the boolean…

From  Hannah Lee on September 24th, 2020 0 plays

Lesson 9.4 If-Elif Statements

In this video we introduce the final conditional statement, the if-elif-else statement. This allows you to chose between an arbitrary number of options.

From  Hannah Lee on September 24th, 2020 0 plays

Lesson 9.3 If-Else Statements

In this video we introduce the if-else statement. It is like the if statement, except that you now chose between two options.

From  Hannah Lee on September 24th, 2020 0 plays

Lesson 8.5 Debugging

Testing is not the same as debugging, but it is the correct first step. In this video, we show how to take the next step to isolate and remove errors in your code.

From  Hannah Lee on September 24th, 2020 0 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 0 plays

CS 6120: Lesson 4: Data Flow

Music: https://www.bensound.comStock footage: https://www.videvo.net

From  Adrian Sampson on September 19th, 2020 11 plays

NS 2450 Social Science Perspectives on Food and Nutrition (2020FA)

Zoom Recording ID: 94937075304 UUID: FSrS1vuqRc6dLf2IRPbg8A== Meeting Time: 2020-09-17T13:43:46Z

From  Stephanie Bostic on September 17th, 2020 28 plays

Zoom Sep. 15. User-Defined Functions

In this class we will review how functions are defined, and how we visualize their execution.We will spend more of the class talking about visualization than how to write function definitions in…

From  Hannah Lee on September 16th, 2020 4 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 6 plays

Lesson 5.6 Functions & the Python Tutor

In the previous video, we showed how to visualize function calls on a piece of paper. But, as with all visualization, we do have the Python Tutor at our disposal. In this video we illustrate the…

From  Hannah Lee on September 11th, 2020 3 plays