Skip to content

Commit 3a68e55

Browse files
committed
Dictionary
1 parent 5c1e924 commit 3a68e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di
6868
```
6969

7070
```python
71-
del <dict>[key]
7271
<dict>.update(<dict>)
7372
<dict> = dict(<list>) # Initiates a dict from list of key-value pairs.
7473
<dict> = dict(zip(keys, values)) # Initiates a dict from two lists.
7574
<dict> = dict.fromkeys(keys [, value]) # Initiates a dict from list of keys.
76-
{k: v for k, v in <dict>.items() if k in keys} # Filters a dict by keys.
75+
del <dict>[key] # Removes item from dictionary.
76+
{k: v for k, v in <dict>.items() if k in keys} # Filters dictionary by keys.
7777
```
7878

7979
### Counter

0 commit comments

Comments
 (0)