From 0ef1ae14917f0fd08ef39669a046fdc9aa2596e8 Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Thu, 26 Dec 2019 17:09:40 +0000 Subject: [PATCH] Travis build: 279 --- snippet_data/snippetList.json | 2 +- snippet_data/snippets.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 98a881722..8d17170b0 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -831,7 +831,7 @@ ] }, "meta": { - "hash": "a2f09e1423bde7161422814e3ecdb2ce77dac812df719ea60c37f55c06a06705" + "hash": "b271bd6034b0b38ee3e998f52e2512dea24266952f632987d77a916abc7597f3" } }, { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index b14fbf829..fe2389360 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -1304,7 +1304,7 @@ "fileName": "median.md", "text": "Finds the median of a list of numbers.\n\nSort the numbers of the list using `list.sort()` and find the median, which is either the middle element of the list if the list length is odd or the average of the two middle elements if the list length is even.\n\n", "codeBlocks": { - "code": "def median(list):\n list.sort()\n list_length = len(list)\n if list_length%2==0:\n return (list[int(list_length/2)-1] + list[int(list_length/2)])/2\n else:\n return list[int(list_length/2)]", + "code": "def median(list):\n list.sort()\n list_length = len(list)\n if list_length % 2 == 0:\n return (list[int(list_length / 2) - 1] + list[int(list_length / 2)]) / 2\n return list[int(list_length / 2)]", "example": "median([1,2,3]) # 2\nmedian([1,2,3,4]) # 2.5" }, "tags": [ @@ -1313,11 +1313,11 @@ ] }, "meta": { - "hash": "a2f09e1423bde7161422814e3ecdb2ce77dac812df719ea60c37f55c06a06705", + "hash": "b271bd6034b0b38ee3e998f52e2512dea24266952f632987d77a916abc7597f3", "firstSeen": "1570093337", - "lastUpdated": "1570169630", - "updateCount": 7, - "authorCount": 4 + "lastUpdated": "1577363941", + "updateCount": 8, + "authorCount": 5 } }, {