# Statement

> One whole step in a program. Each is like a line on a to-do list.

**Field:** Software Development  
**Category:** Programming Concepts

## Think of it like

Think of it like one line in a to-do list. Each line is one thing to do.

## Definition

A statement is one complete step that tells the computer to do something. It might keep a value, show a word or add two numbers. In many languages each statement sits on its own line. The computer runs statements one after another, from top to bottom. Some statements hold others inside them, like a loop or an if.

## Example

Jack's program has three statements. The first keeps a number, the second adds one, the third prints the result.

## Example code

```python
age = 12          # statement 1
age = age + 1     # statement 2
print(age)        # statement 3, prints 13
```

Three statements, run from top to bottom. The last one prints 13.

## Why it matters

Reading code means reading statements in order. Once you see each one as one step, any program gets easier.

## Common mistake

Mixing up a statement and an expression. A statement does a job. An expression gives back a value.

## Three principles

- **One step.** Each statement is one thing for the computer to do.
- **Top to bottom.** Statements run in the order they are written.
- **Can hold others.** An if or a loop wraps more statements.

## Related terms

- [Expression](https://learn.benibix.com/term/development/expression)
- [Keyword](https://learn.benibix.com/term/development/keyword)
- [Program](https://learn.benibix.com/term/development/program)
- [Control Flow](https://learn.benibix.com/term/development/control-flow)

## Told apart from

- [Statement vs Expression](https://learn.benibix.com/compare/statement-vs-expression): A statement does a job, like storing a value. An expression only works out a value, and a statement then uses it.

## Taught in

- [Statements and Expressions](https://learn.benibix.com/learn/development-concepts/statements-and-expressions): Programming Basics, 3/18

---

Source: https://learn.benibix.com/term/development/statement
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
