Search for tag: "script"

Lesson 17.11 Graphical Recursion

Fractals are shapes that look the same when you magnify them larger and larger. This is another example of recursion. In this video we introduce the drawing turtle and show how we use it to draw…

From  Hannah Lee on October 19th, 2020 15 plays

Lesson 14.4 Try-Except and Testing

We have a new control structure, so it is time once again to talk about testing. In this video we revisit the concept of code coverage and show testing a try-except is very similar to testing a…

From  Hannah Lee on October 10th, 2020 13 plays

Lesson 14.3 Try-Except and the Stack

The except-portion of an try-except statement is only executed when there is an error/crash. But, as we have seen, errors can occur anywhere in the call stack. In this video we show how try-except…

From  Hannah Lee on October 10th, 2020 14 plays

Lesson 14.1 Try-Except Statements

In this video we intrduce a new control structure: the try-except statement. As we will see, it looks very similar to an if-else statment with some important differences.

From  Hannah Lee on October 10th, 2020 12 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 8 plays

Lesson 13.1 Error Messages

Most of you have seen error messages already, working on the course assignments. But what do these error messages mean? As we seen in this video, we could not really talk about them until now because…

From  Hannah Lee on October 10th, 2020 9 plays

Lesson 10.7 Multifunction Debugging

Top-down design simplifies the design of code, but it can make debugging a little more complicated. Now bugs are potentially spread across multiple functions. In this video we look at an extended…

From  Hannah Lee on October 2nd, 2020 3 plays

Lesson 10.6 Top-Down Design

Top-down design is a widely–used design technique. Your instructor used it to design the first assignment, and you will use it yourself in later assignments. In this video we take a closer look…

From  Hannah Lee on October 2nd, 2020 3 plays

Lesson 10.5 Helper Functions

In the string videos we talked about the backwards approach to function design. Unforunately, this technique does not combine well with iterative testing. In this video we look at an alternative…

From  Hannah Lee on October 2nd, 2020 3 plays

Lesson 10.4 Iterative Testing

We made very sure that you had learned about testing before you started on your first assignment. That is because we want you testing while you are activtely writing your code, and not waiting until…

From  Hannah Lee on October 2nd, 2020 3 plays

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

Lesson 9.1 Program Flow

Most of our code has been what is known as “straight line code”, meaning that it is executed in the order that it is written. But not all code works this way. In this video, we talk about…

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

Lesson 8.4 Test Procedures

As our modules get more complicated, with more an more function definitions, our test scripts will get more complicated as well. In this video we show how to organize our test scripts by putting the…

From  Hannah Lee on September 24th, 2020 6 plays

Lesson 8.3 Test Scripts

A good testing plan has many, many test cases, and it can be really tedious to keep testing a function. That is why it would be ideal if we could automate the process. In this video, we introduce the…

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