Travis build: 176

This commit is contained in:
30secondsofcode
2019-10-25 07:13:18 +00:00
parent 70b6d7ca4f
commit 59426f1d70
2 changed files with 3 additions and 3 deletions

View File

@ -539,7 +539,7 @@
}
},
{
"id": "initialiaze_2d_list",
"id": "initialize_2d_list",
"type": "snippetListing",
"title": "initialize_2d_list",
"attributes": {

View File

@ -714,11 +714,11 @@
}
},
{
"id": "initialiaze_2d_list",
"id": "initialize_2d_list",
"title": "initialize_2d_list",
"type": "snippet",
"attributes": {
"fileName": "initialiaze_2d_list.md",
"fileName": "initialize_2d_list.md",
"text": "Initializes a 2D list of given width and height and value.\n\nUse list comprehension and `range()` to generate `h` rows where each is a list with length `h`, initialized with `val`.\nIf `val` is not provided, default to `None`.\n\n",
"codeBlocks": {
"code": "def initialize_2d_list(w,h, val = None):\n return [[val for x in range(w)] for y in range(h)]",