Skip to content

Commit 77a404b

Browse files
committed
Dictionary
1 parent 314f298 commit 77a404b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di
7272
<dict> = dict(<list>) # Initiates a dict from list of key-value pairs.
7373
<dict> = dict(zip(keys, values)) # Initiates a dict from two lists.
7474
<dict> = dict.fromkeys(keys [, value]) # Initiates a dict from list of keys.
75+
```
76+
77+
```python
7578
del <dict>[key] # Removes item from dictionary.
7679
{k: v for k, v in <dict>.items() if k in keys} # Filters dictionary by keys.
7780
```

0 commit comments

Comments
 (0)