From 1a9e8386fbb30f21aabc304178092f029bedf72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 6 Jan 2019 00:06:06 +0100 Subject: [PATCH] Dictionary --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 457ae87..8d6a1aa 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ value = .setdefault(key, default) # Same, but also adds default to di = 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. -del [key] # Removes item from dictionary. {k: v for k, v in .items() if k in keys} # Filters dictionary by keys. +del [key] # Removes item from dictionary. ``` ### Counter