0

Please explain me in simple language what are in place operator with example?

23rd Oct 2020, 5:52 AM
Ujjwal Sharma
2 Réponses
+ 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) 
23rd Oct 2020, 6:11 AM
Alphin K Sajan
Alphin K Sajan - avatar
23rd Oct 2020, 6:19 AM
Alphin K Sajan
Alphin K Sajan - avatar