Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Please explain me in simple language what are in place operator with example?
2 Respostas
+ 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/