Subtraction Assignment¶
Subtraction assignment operator (-=
) can be used subtract and assign value to a variable.
Syntax
variable -= expr
Example
a -= 3
b -= 4
Subtraction assignment operator (-=
) can be used subtract and assign value to a variable.
variable -= expr
a -= 3
b -= 4