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