New course! Every coder should learn Generative AI!
Try a free lesson0
can anyone explain this topic: += or -=
3 Answers
+ 2
it is a short form of:
a = a+1 which is equivalent to a+=1
+ 1
This is shorthand notation.for
a=a+2 is same as
a+=2
0
thanks for explaining guys