From 7aeb05dbe0c348b5033c6d4b8d3d5ab463c3f244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 6 Jan 2019 02:41:16 +0100 Subject: [PATCH] Dictionary --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b1fa531..c1b1135 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ Dictionary ``` ```python +value = .get(key) # Returns None if key does not exist. value = .get(key, default) # Returns default if key does not exist. value = .setdefault(key, default) # Same, but also adds default to dict. = collections.defaultdict() # Creates a dictionary with default value of type.