What is the in-place operator in python used for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the in-place operator in python used for?

22nd May 2018, 7:07 AM
Adi
Adi - avatar
4 Answers
22nd May 2018, 7:36 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 4
The documentation is here, paragraf 9.3.2: https://docs.python.org/3.2/library/operator.html
22nd May 2018, 7:46 AM
Paul
Paul - avatar
+ 2
It is shorter code. Always?
22nd May 2018, 8:03 AM
Paul
Paul - avatar
0
Thank you guys, but sorry i mean the question is when i use in place operator? In what conditions i should use it? Sorry for my bad english
22nd May 2018, 7:59 AM
Adi
Adi - avatar