diff --git a/README.md b/README.md index 4db6f35..3909388 100644 --- a/README.md +++ b/README.md @@ -63,17 +63,17 @@ Dictionary ``` ```python -value = .get(key, default=None) # Returns default if key does not exist. -value = .setdefault(key, default=None) # Same, but also adds default to dict. - = collections.defaultdict() # Creates a dictionary with default value of type. - = collections.defaultdict(lambda: 1) # Creates a dictionary with default value 1. +value = .get(key, default=None) # Returns default if key does not exist. +value = .setdefault(key, default=None) # Same, but also adds default to dict. + = collections.defaultdict() # Creates a dictionary with default value of type. + = collections.defaultdict(lambda: 1) # Creates a dictionary with default value 1. ``` ```python -.update() # Or: dict_a = {**dict_a, **dict_b}. - = dict() # Initiates a dict from coll. of key-value pairs. - = dict(zip(keys, values)) # Initiates a dict from two collections. - = dict.fromkeys(keys [, value]) # Initiates a dict from collection of keys. +.update() # Or: dict_a = {**dict_a, **dict_b}. + = dict() # Initiates a dict from coll. of key-value pairs. + = dict(zip(keys, values)) # Initiates a dict from two collections. + = dict.fromkeys(keys [, value]) # Initiates a dict from collection of keys. ``` ```python