Skip to content

Commit c2da828

Browse files
authored
Merge pull request gto76#9 from crazyiop/dict-del
dict: add del operator
2 parents 9066567 + a0d7316 commit c2da828

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)