From a9b1277377d7e2396ddce734584e78a8e9607cec Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Fri, 1 Nov 2019 07:11:33 +0000 Subject: [PATCH] Travis build: 195 --- README.md | 4 ++-- snippet_data/snippetList.json | 2 +- snippet_data/snippets.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 94d446585..bde6255c4 100644 --- a/README.md +++ b/README.md @@ -1734,8 +1734,8 @@ Use `dict.values()` to return the values in the given dictionary. Return a `list()` of the previous result. ```py -def values_only(dict): - return list(dict.values()) +def values_only(flat_dict): + return list(flat_dict.values()) ```
diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 2b3002102..83e350d41 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -1220,7 +1220,7 @@ ] }, "meta": { - "hash": "d6942bb96124e6cb484b2b9a6d407d761adbbe8df37339674e02a344c7bdda28" + "hash": "ea3005a1cc4999d065fcf7141c14fd481f8384bc7d45ecf0eeaf04b6eb8adb66" } }, { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 68089ae86..71f61f1d3 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -1605,7 +1605,7 @@ "fileName": "values_only.md", "text": "Returns a flat list of all the values in a flat dictionary.\n\nUse `dict.values()` to return the values in the given dictionary.\nReturn a `list()` of the previous result.\n\n", "codeBlocks": { - "code": "def values_only(dict):\n return list(dict.values())", + "code": "def values_only(flat_dict):\n return list(flat_dict.values())", "example": "ages = {\n \"Peter\": 10,\n \"Isabel\": 11,\n \"Anna\": 9,\n}\nvalues_only(ages) # [10, 11, 9]" }, "tags": [ @@ -1615,7 +1615,7 @@ ] }, "meta": { - "hash": "d6942bb96124e6cb484b2b9a6d407d761adbbe8df37339674e02a344c7bdda28" + "hash": "ea3005a1cc4999d065fcf7141c14fd481f8384bc7d45ecf0eeaf04b6eb8adb66" } }, {