arithmetic operator

A symbol that does arithmetic on numbers: + add, - subtract, * multiply, / divide, // floor divide, % remainder and ** power.

In more detail

Python uses * for multiplication, never x. Operators follow precedence rules, so 2 + 3 * 4 is 14; parentheses override them. Some operators also work on other types: + joins strings and lists and * repeats them.

Related terms

Taught in

References

Certification courses