+ 1
What are in place operators ?
The definition given in the app is very confusing, pls help out with an understandable example
2 Respostas
+ 4
Good question! I think they are operators that modify their arguments, rather than create new values. In Python, arr.sort() modifies list arr. So we say it sorts "in place". However, sorted(arr) leaves arr unchanged, and creates a new list.