From f2fe7fa2aec63d097fc2b16e104106166b12e9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 28 Dec 2018 19:56:58 +0100 Subject: [PATCH] Dictionary --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index eca3f0c..3f7b34b 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ value = .setdefault(key, default) # Same, but also adds default to di .update() = dict() # Initiates a dict from list of key-value pairs. = dict(zip(keys, values)) # Initiates a dict from two lists. + = dict.fromkeys(keys [, value]) # Initiates a dict from list of keys. {k: v for k, v in .items() if k in keys} # Filters a dict by keys. ```