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…

+19 More
From  Hannah Lee 167 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…

+19 More
From  Hannah Lee 939 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.

+19 More
From  Hannah Lee 94 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…

+19 More
From  Hannah Lee 113 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.

+19 More
From  Hannah Lee 161 plays