From 8e006496e42d5cdb011364efca056a172045e5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 17 Apr 2019 16:13:32 +0200 Subject: [PATCH] Dict --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da02f0f..77cc5b4 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ value = .setdefault(key, default=None) # Same, but also adds default to ``` ```python -.update() # Or: dict_a = {**dict_a, **dict_b}. +.update() = dict() # Creates a dict from coll. of key-value pairs. = dict(zip(keys, values)) # Creates a dict from two collections. = dict.fromkeys(keys [, value]) # Creates a dict from collection of keys. diff --git a/index.html b/index.html index eea9e17..838596c 100644 --- a/index.html +++ b/index.html @@ -251,7 +251,7 @@ value = <dict>.setdefault(key, default=None# Creates a dict with default value of type. <dict> = collections.defaultdict(lambda: 1) # Creates a dict with default value 1. -
<dict>.update(<dict>)                           # Or: dict_a = {**dict_a, **dict_b}.
+
<dict>.update(<dict>)
 <dict> = dict(<collection>)                     # Creates a dict from coll. of key-value pairs.
 <dict> = dict(zip(keys, values))                # Creates a dict from two collections.
 <dict> = dict.fromkeys(keys [, value])          # Creates a dict from collection of keys.