What does Convert into compound assignment for p.y mean in the context in this image?
The code seems to work just fine.
Wondering why that suggesting by the IDE?
>Solution :
See Compound Assignment.
For a binary operator op, a compound assignment expression of the form:
x += y
is equivalent to
x = x + y
It simply makes your code more compact and (arguably) more readable.
