Search for tag: "command"

Lesson 20.1 Class Definitions

In this video we show you the basic format of a class definition. However, classes can contain a lot of features, so our classes will be very simple for this demonstration.

From  Hannah Lee on October 27th, 2020 4 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 13.3 Assert Statements

Determining responsibility can get really tedious. In this video, we show how we can responsibility explicit by creating errors on purpose. We introduce the assert statement, which will allow us to…

From  Hannah Lee on October 10th, 2020 10 plays

Lesson 12.4 Functions in Memory

We know what happens when we call a function. But as we show in this video, Python also does something very important when we define a function. It has to store the definition somewhere.

From  Hannah Lee on October 2nd, 2020 10 plays

Lesson 10.2 Function Stubs

Once we have an algorithm, it is time to get started writing code. In this video we talk about function stubs, which are how we get started. We like function stubs because they act as placeholders…

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

Lesson 5.4 Fruitful Functions

In this video we show how to define the definition of a fruitful function (a function that can be used as an expression). It requires a new type of command: the return statement.

From  Hannah Lee on September 11th, 2020 9 plays

Lesson 5.1 Function Terminology

This video series is where we start to pile on the vocabulary. In this video we reveiw the most important vocabulary terms for this series, and show you where to look if you are unsure about a word.

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.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

Zoom Sep. 8. Visualizing Variables

In this class we do some interactive demos in which try to understand how to visualize and work with variables.Obviously you should watch Module 2 before attending this class. Our goal in this class…

From  Hannah Lee on September 9th, 2020 10 plays

Lesson 3.5 Advanced Import Statements (OPTIONAL)

This is a completely optional video for people who are interested in all of the different ways that you can import a module in Python. However, it is a tad advanced for a beginning programmer. If you…

From  Hannah Lee on September 9th, 2020 4 plays

Lesson 3.2 String Functions

Strings are very powerful type that we will use in the first major assignment. In this video we introduce the three main string functions that you should be aware of.

From  Hannah Lee on September 9th, 2020 6 plays