function stub

An incomplete function whose heading and docstring are written but whose body is left for you to fill in.

In more detail

The course hands out stubs for exercises: the name, parameters and an example in the docstring are given, and the body may be just pass. Writing the stub first is also a good habit, because it forces you to decide what the function takes and returns.

Related terms

Taught in

References