Addition Assignment¶
Addition assignment operator (+=
) can be used add and assign value to a variable.
Syntax
variable += expr
Example
a += 3
b += 4
Addition assignment operator (+=
) can be used add and assign value to a variable.
variable += expr
a += 3
b += 4