Home » Backend » Python » /= (division assignment)
This /= (division assignment) assignment operator multiplies the variable by a value and assigns the result to that variable.
/=
A /= B
Here,
Note: This is equivalent to A = A / B
>>> a = 10 >>> a /= 5 >>> a 2