[Solved] In Python the difference between += and = [closed]


A += 1 means A = A + 1. So A += A = a would be A = A + A = a (which obviously doesnt work).

The error you seem to experience is not caused by this operator. Perhaps you mixed spaces with tabs, or you simply did not indent a certain line when it should have been.

2

solved In Python the difference between += and = [closed]