ScanSkill

-= (subtraction assignment)

This -= (subtraction assignment) assignment operator subtracts a value from the variable and assigns the result to that variable.

Syntax

A -= B

Here,

  • A: Any valid object.
  • B: Any valid object.

Note: This is equivalent to A = A - B

Examples

>>> a = 10
>>> a -= 5
>>> a
5