What’s the particular reason that some functions in Python operate “IN PLACE”, like [].sort and [].reverse, while some others like [].append not?
What’s the particular reason that some functions in Python operate IN PLACE, like [].sort
Share
According to my Programming Python 4th edition:
There is actually a whole section devoted to this, but this pretty much answers your question.