Can someone explain this to me in Simple Words? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone explain this to me in Simple Words?

In-place operators allow you to write code like 'x = x + 3' more concisely, as 'x += 3'. The same thing is possible with other operators such as -, *, / and % as well.

15th Jan 2019, 10:38 AM
Mike
1 Answer
+ 1
x = x+3 is same as x +=3 and similar with other operators like x %=3 or x *= 3 etc. as well.
15th Jan 2019, 10:44 AM
Шащи Ранжан
Шащи Ранжан - avatar