From 743a6e157b741edef84a500ae045c62fba47ba46 Mon Sep 17 00:00:00 2001 From: zach valenta Date: Thu, 31 Oct 2019 12:07:11 -0400 Subject: [PATCH] make consistent with keys_only https://github.com/30-seconds/30-seconds-of-python#keys_only names parameter `flat_dict`, which avoids shadowing `dict`, seems like the right approach for here as well --- snippets/values_only.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/values_only.md b/snippets/values_only.md index e1ec5a09f..906105070 100644 --- a/snippets/values_only.md +++ b/snippets/values_only.md @@ -9,8 +9,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()) ``` ```py