Skip to content

Commit 7aeb05d

Browse files
committed
Dictionary
1 parent d35c0d4 commit 7aeb05d

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+
value = <dict>.get(key) # Returns None if key does not exist.
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)