diff --git a/UFCFVQ-15-M Programming Task 1 Template.ipynb b/UFCFVQ-15-M Programming Task 1 Template.ipynb index 5dab479e1a1c73555987c7ff1fb79afae5fe30d8..767f526b659ae7f9e04a3d70e88b054804bb7f17 100644 --- a/UFCFVQ-15-M Programming Task 1 Template.ipynb +++ b/UFCFVQ-15-M Programming Task 1 Template.ipynb @@ -326,11 +326,40 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Statistic Value\n", + "-------------------------\n", + "Mean 14.50\n", + "STD 8.66\n", + "Min 0\n", + "Max 29\n", + "25% 7\n", + "50% 14\n", + "75% 21\n" + ] + } + ], "source": [ - "# add code here" + "\n", + "# A summary of the statistics, including the standard deviation, minimum and maximum values, as well, as percentiles.\n", + "\n", + "header = f\"{'Statistic':<15}{'Value':>10}\"\n", + "separator = '-' * len(header)\n", + "print(header)\n", + "print(separator)\n", + "print(f\"{'Mean':<15}{mean_value:>10.2f}\")\n", + "print(f\"{'STD':<15}{std_value:>10.2f}\")\n", + "print(f\"{'Min':<15}{The_min_value:>10}\")\n", + "print(f\"{'Max':<15}{The_max_value:>10}\")\n", + "print(f\"{'25%':<15}{percentile_25:>10}\")\n", + "print(f\"{'50%':<15}{percentile_50:>10}\")\n", + "print(f\"{'75%':<15}{percentile_75:>10}\")" ] }, {