Remainder Assignment¶
Remainder assignment operator (%=
) can be used calculate remainder and assign it to a variable.
Syntax
variable %= expr
Example
a %= 3
b %= 4
Remainder assignment operator (%=
) can be used calculate remainder and assign it to a variable.
variable %= expr
a %= 3
b %= 4