statement

One complete instruction in a program, such as an assignment, a function call on its own line, or an if statement.

In more detail

Simple statements fit on one line; compound statements such as if, for, while and def have a heading ending in a colon and an indented block. Statements run in order from top to bottom unless control flow changes that order.

Related terms

Taught in

References

Certification courses