code block

The group of indented statements under a heading such as def, if, for or while, which run together as one unit.

In more detail

The block starts after the heading's colon and ends at the first line indented less. Blocks can be nested inside blocks, each level indented further.

Related terms

Taught in

References