Remainder¶
Remainder operator (%
) can be used to get remainder from division of two numbers.
Syntax
operand1 % operand2
Example
11 % 2
# 1
Remainder operator (%
) can be used to get remainder from division of two numbers.
operand1 % operand2
11 % 2
# 1