diff options
| author | 2021-02-06 21:41:13 +0400 | |
|---|---|---|
| committer | 2021-02-06 21:41:13 +0400 | |
| commit | df22551dbf7a4dae4e374eb1dd95d9354b73474c (patch) | |
| tree | 95df30a4a3ab7b50f0dabb50206185921fa992e6 | |
| parent | Make `defaultdict` tag (diff) | |
Fix trailing whitespaces
| -rw-r--r-- | bot/resources/tags/defaultdict.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/defaultdict.md b/bot/resources/tags/defaultdict.md index a15ebff2a..9361d6f2a 100644 --- a/bot/resources/tags/defaultdict.md +++ b/bot/resources/tags/defaultdict.md @@ -1,6 +1,6 @@ **[`collections.defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict)** -The Python `defaultdict` type behaves almost exactly like a regular Python dictionary, but if you try to access or modify a missing key, the `defaultdict` will automatically create the key and generate a default value for it. +The Python `defaultdict` type behaves almost exactly like a regular Python dictionary, but if you try to access or modify a missing key, the `defaultdict` will automatically create the key and generate a default value for it. While instantiating a `defaultdict`, we pass in a function that tells it how to create a default value for missing keys. ```py |