Browse Source

Dictionary

pull/10/head
Jure Šorn 5 years ago
parent
commit
fb4924cd41
1 changed files with 0 additions and 1 deletions
  1. 1
      README.md

1
README.md

@ -61,7 +61,6 @@ Dictionary
``` ```
```python ```python
value = <dict>.get(key) # Returns None if key does not exist.
value = <dict>.get(key, default) # Returns default if key does not exist. value = <dict>.get(key, default) # Returns default if key does not exist.
value = <dict>.setdefault(key, default) # Same, but also adds default to dict. value = <dict>.setdefault(key, default) # Same, but also adds default to dict.
<dict> = collections.defaultdict(<type>) # Creates a dictionary with default value of type. <dict> = collections.defaultdict(<type>) # Creates a dictionary with default value of type.

Loading…
Cancel
Save