Skip to content

Commit a0d7316

Browse files
committed
dict: add del operator
1 parent 9066567 commit a0d7316

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Dictionary
6161
```
6262

6363
```python
64+
del <dict>[key] # Remove an existing key.
6465
value = <dict>.get(key, default) # Returns default if key does not exist.
6566
value = <dict>.setdefault(key, default) # Same, but also adds default to dict.
6667
<dict> = collections.defaultdict(<type>) # Creates a dictionary with default value of type.

0 commit comments

Comments
 (0)