diff --git a/README.md b/README.md index d43cb55..cde6cf9 100644 --- a/README.md +++ b/README.md @@ -43,18 +43,18 @@ Dictionary .update() ``` -```python ->>> a = [('x', 4), ('y', 5)] ->>> dict(a) -{'x': 4, 'y': 5} -``` - ```python collections.defaultdict() # Creates a dictionary with default values. dict(zip(keys, values)) # Initiates a dict from two lists. {k: v for k, v in .items() if k in } # Filters a dict by keys. ``` +```python +>>> a = [('x', 4), ('y', 5)] +>>> dict(a) +{'x': 4, 'y': 5} +``` + ### Counter ```python >>> from collections import Counter