Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 492 Bytes

File metadata and controls

39 lines (31 loc) · 492 Bytes

+= Addition Assignment

Description

Adds a value and the variable and assigns the result to that variable.

Syntax

A += B

A
Any valid object.
B
Any valid object.

Return Value

According to coercion rules.

Time Complexity

#TODO

Remarks

Equivalent to A = A + B, if __iadd__ method is not defined

Example

>>> a = 10
>>> a += 5
>>> a
15

See Also

#TODO