Commit 4d3be891 authored by Gökçe Aydos's avatar Gökçe Aydos 🌈
Browse files

clarify

parent d1a7dfd3
Pipeline #12950 failed with stage
in 10 minutes and 5 seconds
......@@ -647,7 +647,9 @@ A) I don't know
## 2
- `del` cannot know which key to delete if the dict's name is not given
- an *item* is a component of a collection. An item of a dict is a key-value pair. `d.popitem()` returns the lastly added item and deletes it. (note that `d.popitem(k, v)` does not exist. It would not make sense, because we can easily access items by their key).
- `d.popitem()` returns the lastly added item and deletes it, so items with the keys `'Draco'` and `'Hermione'` will be removed instead of `'Ron'` and `'Hermione'`.
- an *item* is a component of a collection. An item of a dict is a key-value pair.
- note that `d.popitem(k, v)` does not exist. It would not make sense, because we can easily access items by their key
##
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment