Search for tag: "docstring"
Lesson 21.1 Interface vs ImplementationWhen 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
167 plays
|
|
Lesson 10.2 Function StubsOnce 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
939 plays
|
|
Lesson 7.2 Specification FormatNow 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
94 plays
|
|
Lesson 6.5 String ProcessingThe 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
113 plays
|
|
Lesson 5.2 ProceduresIn 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
161 plays
|