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
This commit is contained in:
@ -9,8 +9,8 @@ Use `dict.values()` to return the values in the given dictionary.
|
|||||||
Return a `list()` of the previous result.
|
Return a `list()` of the previous result.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
def values_only(dict):
|
def values_only(flat_dict):
|
||||||
return list(dict.values())
|
return list(flat_dict.values())
|
||||||
```
|
```
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
|||||||
Reference in New Issue
Block a user