changed sum to average

parent 95d83a04
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 11,
"metadata": { "metadata": {
"scrolled": true "scrolled": true
}, },
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Sum: 1411.3000000000002\n", "Avg: 14.113000000000001\n",
"Min: 2.8\n", "Min: 2.8\n",
"Max: 23.4\n", "Max: 23.4\n",
"Median: 14.5\n", "Median: 14.5\n",
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
"source": [ "source": [
"from numpy import *\n", "from numpy import *\n",
"\n", "\n",
"print(f\"Sum: {sum(data)}\")\n", "print(f\"Avg: {average(data)}\")\n",
"print(f\"Min: {min(data)}\")\n", "print(f\"Min: {min(data)}\")\n",
"print(f\"Max: {max(data)}\")\n", "print(f\"Max: {max(data)}\")\n",
"print(f\"Median: {median(data)}\")\n", "print(f\"Median: {median(data)}\")\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment