0
Please explain me in simple language what are in place operator with example?
2 odpowiedzi
+ 4
Unlike the inbuilt Python operators & operator functions, the Inplace operator functions perform computation & assignment in a single statement. For example, the standard operator functions like add (), mul () etc take twoparameters, perform the operation of them & return the resultant.
The operators which helps to do the operation is called in-place operator. ... Eg: a+= b is equivalent to a= operator.iadd(a, b)
+ 4
For more detailed explanation with examples read:
https://www.geeksforgeeks.org/inplace-operators-JUMP_LINK__&&__python__&&__JUMP_LINK-set-1iadd-isub-iconcat/