Search for tag: "y"

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 12.5 Functions as Variables

If function definitions are objects, then that means we can compute with them like any other object. In this video we show what happens when we assign a function definition to a variable, or why we…

From  Hannah Lee on October 2nd, 2020 11 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 3 plays

Lesson 4.2 Code Editors

Working on modules will require a new type of program: the code editor. In this video we discuss why we prefer Atom Editor and how you should use it in this course.

From  Hannah Lee on September 11th, 2020 12 plays

Lesson 4.6 Interactive Scripts

Right now, we do not know a lot of Python commands, and so our scripts are pretty boring. But we can make them a lot more interesting with a function that we have already seen: the input function. In…

From  Hannah Lee on September 9th, 2020 8 plays

Lesson 4.4 Modules vs Scripts

At this point you are wondering what is the difference between a module and script, since they both end in .py. This is an excellent question. But as this video shows, the answer may not be what you…

From  Hannah Lee on September 9th, 2020 7 plays

Lesson 4.3 Module Structure

In this video we take a closer look at module files. We show what types of things we can put into a module file, and what their purpose is. In addition, after this video should have a better idea of…

From  Hannah Lee on September 9th, 2020 10 plays

Lesson 4.1 Modules

In this video we talk about what a module really is, and why it is so important for us to have them in this course. We show how to make our own modules and how to import them. In this video it will…

From  Hannah Lee on September 9th, 2020 15 plays