Skip to content

Commit 264915c

Browse files
committed
Dictionary
1 parent 77a404b commit 264915c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ Dictionary
6161
```
6262

6363
```python
64-
value = <dict>.get(key, default) # Returns default if key does not exist.
65-
value = <dict>.setdefault(key, default) # Same, but also adds default to dict.
66-
<dict> = collections.defaultdict(<type>) # Creates a dictionary with default value of type.
67-
<dict> = collections.defaultdict(lambda: 1) # Creates a dictionary with default value 1.
64+
value = <dict>.get(key, default) # Returns default if key does not exist.
65+
value = <dict>.setdefault(key, default) # Same, but also adds default to dict.
66+
<dict> = collections.defaultdict(<type>) # Creates a dictionary with default value of type.
67+
<dict> = collections.defaultdict(lambda: 1) # Creates a dictionary with default value 1.
6868
```
6969

7070
```python

0 commit comments

Comments
 (0)