Section: Numbers, booleans, and comparisons

Modulo

python
python
remainder = 7 % 3

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Numbers, booleans, and comparisons
Integer division
Integer division
OpenIn sheetpythonsame section
Exponentiation
Exponentiation
OpenIn sheetpythonsame section
Chained comparison
Chained comparison
OpenIn sheetpythonsame section
Truthy fallback
Truthy fallback
OpenIn sheetpythonsame section
Ternary expression
Ternary expression
OpenIn sheetpythonsame section
Print text
Print text