diff options
| author | 2023-01-27 17:28:56 -0700 | |
|---|---|---|
| committer | 2023-01-27 17:28:56 -0700 | |
| commit | aacbdb080c1dd8da6304692c985b0f695b5b4b63 (patch) | |
| tree | 059cc74a178ccb02d817c531d4d14e0981f46320 | |
| parent | Small Minimization Changes (diff) | |
More minimizations
| -rw-r--r-- | bot/resources/tags/in-place.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/resources/tags/in-place.md b/bot/resources/tags/in-place.md index 7782175a2..a19fc1b30 100644 --- a/bot/resources/tags/in-place.md +++ b/bot/resources/tags/in-place.md @@ -1,8 +1,8 @@ **Out of Place** and **In Place** -In programming, there are two types of operations: "out of place" and "in place". An "out of place" operation creates a new object, leaving the original object unchanged. An "in place" operation modifies the original object, without creating a new one. These operations return None explicitly. +In programming, there are two types of operations: "out of place" operations creates a new object, leaving the original object unchanged. "in place" operations modifies the original object, without creating a new one. These operations return None explicitly. -A common example of these different concepts is seen in the use of the methods `list.sort()` and `sorted(...)`. Using `list.sort()` and attempting to access an element of the list after calling `sort()` will result in an error. +A common example of these different concepts is seen in the use of the methods `list.sort()` and `sorted(...)`. Using `list.sort()` and attempting to access an element of the list will result in an error. ```py a_list = [3, 1, 2] |