# Operator

> A sign like +, > or and that works on values and gives a result.

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

## Think of it like

Think of it like the plus and minus keys. Each key does one job.

## Definition

An operator is a sign that does something with values. + adds, > compares and and joins two tests together. The values it works on are called operands, so in 3 + 4 the operands are 3 and 4. Operators come in families: maths, comparing and logic. When a line has several, some go first, the way times goes before plus.

## Example

In price * 2 > 50, the * runs first, then > checks the answer. A price of 30 gives True.

## Example code

```python
>>> 3 + 4 * 2
11
>>> (3 + 4) * 2
14
```

Times goes first, unless brackets say what goes first.

## Why it matters

Almost every line of code uses an operator. Knowing which goes first stops quiet maths bugs.

## Common mistake

Forgetting the order rules. When in doubt, add brackets so the order is plain to see.

## Three principles

- **Works on values.** It takes one or two values in.
- **Gives a result.** A number, a true or a false.
- **Has an order.** Some operators run before others.

## Related terms

- [Arithmetic Operator](https://learn.benibix.com/term/development/arithmetic-operator)
- [Comparison Operator](https://learn.benibix.com/term/development/comparison-operator)
- [Logical Operator](https://learn.benibix.com/term/development/logical-operator)
- [Expression](https://learn.benibix.com/term/development/expression)

## Taught in

- [Operators in Python](https://learn.benibix.com/learn/development-concepts/operators-in-python): Programming Basics, 9/18

---

Source: https://learn.benibix.com/term/development/operator
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.
