We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a60ac commit 7e93e0cCopy full SHA for 7e93e0c
README.md
@@ -362,8 +362,8 @@ Can you guess why the output is `[2, 4]`?
362
363
364
**Difference between `del`, `remove`, and `pop`:**
365
+* `del var_name` just removes the binding of the `var_name` from the local or global namespace (That's why the `list_1` is unaffected).
366
* `remove` removes the first matching value, not a specific index, raises `ValueError` if the value is not found.
-* `del` removes a specific index (That's why first `list_1` was unaffected), raises `IndexError` if an invalid index is specified.
367
* `pop` removes element at a specific index and returns it, raises `IndexError` if an invalid index is specified.
368
369
**Why the output is `[2, 4]`?**
0 commit comments