Travis build: 191

This commit is contained in:
30secondsofcode
2019-10-31 07:44:16 +00:00
parent b0853fcd1c
commit 17259910dd
3 changed files with 58 additions and 0 deletions

View File

@ -788,6 +788,21 @@
"hash": "aca578491d9c055c793cf782db88f7e0c1de093c3e9ad09a72a59e75055b7581"
}
},
{
"id": "max_element_index",
"type": "snippetListing",
"title": "max_element_index",
"attributes": {
"text": "Returns the pindex of the element with the maximum value in a list.\n\nUse `max()` and `list.index()` to get the maximum value in the list and return its index.\n\n",
"tags": [
"list",
"beginner"
]
},
"meta": {
"hash": "b482aa65907f5e1516d22e1e1ba88a87234a83e8db220a11e9ea4687cee6376c"
}
},
{
"id": "max_n",
"type": "snippetListing",

View File

@ -1043,6 +1043,26 @@
"hash": "aca578491d9c055c793cf782db88f7e0c1de093c3e9ad09a72a59e75055b7581"
}
},
{
"id": "max_element_index",
"title": "max_element_index",
"type": "snippet",
"attributes": {
"fileName": "max_element_index.md",
"text": "Returns the pindex of the element with the maximum value in a list.\n\nUse `max()` and `list.index()` to get the maximum value in the list and return its index.\n\n",
"codeBlocks": {
"code": "def max_element_index(arr):\r\n return arr.index(max(arr))",
"example": "thon\r\nmax_element_index([5, 8, 9, 7, 10, 3, 0]) # 4"
},
"tags": [
"list",
"beginner"
]
},
"meta": {
"hash": "b482aa65907f5e1516d22e1e1ba88a87234a83e8db220a11e9ea4687cee6376c"
}
},
{
"id": "max_n",
"title": "max_n",