More accurately: [key]=value is still an "add or update", but x =+ y means x = x + y - "get x, add y to it, and set that value to x" - so yeah, it's the operator.
This is also true with dict[key]=value++ and ++dict[key]=value.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
More accurately:
[key]=value
is still an "add or update", butx =+ y
meansx = x + y
- "get x, add y to it, and set that value to x" - so yeah, it's the operator.This is also true with
dict[key]=value++
and++dict[key]=value
.