Search for tag: "docstring"

Lesson 21.1 Interface vs Implementation

When we implement (or define) a function, we are given a specification and we complete the rest of the body to match the specification. We will do the same thing for classes as well. But as we see in…

From  Hannah Lee 147 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 880 plays

Lesson 7.2 Specification Format

Now that you know why specifications are so important, it is time to write them. We have a very specific format that we want for our specifications, which is detailed in this video.

From  Hannah Lee 89 plays

Lesson 6.5 String Processing

The focus of the first assignment will be to write functions that take a string as input and produce a string as output. We sometimes call this (informally) string processing. This can be a daunting…

From  Hannah Lee 106 plays

Lesson 5.2 Procedures

In this video, we show you how to define a procedure in the Python interactive shell. Recall that a procedure is a function that is used as a command.

From  Hannah Lee 147 plays