Travis build: 195
This commit is contained in:
@ -1734,8 +1734,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())
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
@ -1220,7 +1220,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "d6942bb96124e6cb484b2b9a6d407d761adbbe8df37339674e02a344c7bdda28"
|
"hash": "ea3005a1cc4999d065fcf7141c14fd481f8384bc7d45ecf0eeaf04b6eb8adb66"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1605,7 +1605,7 @@
|
|||||||
"fileName": "values_only.md",
|
"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",
|
"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": {
|
"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]"
|
"example": "ages = {\n \"Peter\": 10,\n \"Isabel\": 11,\n \"Anna\": 9,\n}\nvalues_only(ages) # [10, 11, 9]"
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
@ -1615,7 +1615,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "d6942bb96124e6cb484b2b9a6d407d761adbbe8df37339674e02a344c7bdda28"
|
"hash": "ea3005a1cc4999d065fcf7141c14fd481f8384bc7d45ecf0eeaf04b6eb8adb66"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user