diff --git a/1.-Python/1.-Snail-and-Well/snail-and-well.ipynb b/1.-Python/1.-Snail-and-Well/snail-and-well.ipynb index 3402144..fb25480 100644 --- a/1.-Python/1.-Snail-and-Well/snail-and-well.ipynb +++ b/1.-Python/1.-Snail-and-Well/snail-and-well.ipynb @@ -30,10 +30,15 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "well_height = 125\n", + "daily_distance = 30\n", + "nightly_distance = -20\n", + "snail_position = 0" + ] }, { "cell_type": "markdown", @@ -44,10 +49,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "days = 0" + ] }, { "cell_type": "markdown", @@ -58,10 +65,19 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "while (snail_position <= well_height):\n", + " snail_position += daily_distance\n", + " if (snail_position > well_height):\n", + " days += 1\n", + " else:\n", + " days += 1\n", + " snail_position += nightly_distance\n", + " " + ] }, { "cell_type": "markdown", @@ -72,10 +88,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "It will take the snake 11 days to scape the well.\n" + ] + } + ], + "source": [ + "print(\"\")\n", + "print(\"It will take the snake\", days, \"days to scape the well.\")" + ] }, { "cell_type": "markdown", @@ -96,10 +124,37 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "It will take the snake 6 days to scape the well.\n" + ] + } + ], + "source": [ + "well_height = 125\n", + "advance_cm = [30, 21, 33, 77, 44, 45, 23, 45, 12, 34, 55]\n", + "nightly_distance = -20\n", + "snail_position = 0\n", + "days = 0\n", + "\n", + "for i in advance_cm:\n", + " if (snail_position <= well_height):\n", + " snail_position += i\n", + " if (snail_position > well_height):\n", + " days += 1\n", + " else:\n", + " days += 1\n", + " snail_position += nightly_distance\n", + "\n", + "print(\"\")\n", + "print(\"It will take the snake\", days, \"days to scape the well.\")" + ] }, { "cell_type": "markdown", @@ -111,10 +166,34 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The maximum displacement in one day is 57 cm.\n", + "The minimum displacement in one day is 1 cm.\n" + ] + } + ], + "source": [ + "real_daily_distance = advance_cm[:days]\n", + "displacement = []\n", + "\n", + "for i in real_daily_distance[:(days-1)]:\n", + " x = i + nightly_distance\n", + " displacement.append(x)\n", + "\n", + "for i in real_daily_distance[(days-1):]:\n", + " displacement.append(i)\n", + "\n", + "print(\"\")\n", + "print(\"The maximum displacement in one day is\", (max(displacement)), \"cm.\")\n", + "print(\"The minimum displacement in one day is\", (min(displacement)), \"cm.\")" + ] }, { "cell_type": "markdown", @@ -125,10 +204,24 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The average progress of the snake is 25.0 .\n" + ] + } + ], + "source": [ + "average_progress = sum(displacement)/len(displacement)\n", + "\n", + "print(\"\")\n", + "print(\"The average progress of the snake is\", average_progress, \".\")" + ] }, { "cell_type": "markdown", @@ -137,6 +230,42 @@ "#### 4. What is the standard deviation of its displacement? Take into account the snail slides at night." ] }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The standard deviation for the snake displacement is 19.87460691435179 .\n" + ] + } + ], + "source": [ + "squared_deviation_around_mean = []\n", + "\n", + "for i in displacement:\n", + " x = (i - average_progress)**2\n", + " squared_deviation_around_mean.append(x)\n", + "\n", + "variance = sum(squared_deviation_around_mean)/len(squared_deviation_around_mean)\n", + "\n", + "standard_deviation = variance**0.5\n", + "\n", + "print(\"\")\n", + "print(\"The standard deviation for the snake displacement is\", standard_deviation, \".\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null, @@ -161,7 +290,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git a/1.-Python/2.-Duel-of-Sorcerers/duel-of-sorcerers.ipynb b/1.-Python/2.-Duel-of-Sorcerers/duel-of-sorcerers.ipynb index b4a5f6d..887f1d8 100644 --- a/1.-Python/2.-Duel-of-Sorcerers/duel-of-sorcerers.ipynb +++ b/1.-Python/2.-Duel-of-Sorcerers/duel-of-sorcerers.ipynb @@ -49,10 +49,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "gandalf = [10, 11, 13, 30, 22, 11, 10, 33, 22, 22]\n", + "saruman = [23, 66, 12, 43, 12, 10, 44, 23, 12, 17]\n", + "spells = 0" + ] }, { "cell_type": "markdown", @@ -64,10 +68,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "gandalf_wins = 0\n", + "saruman_wins = 0" + ] }, { "cell_type": "markdown", @@ -78,10 +85,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "for i in gandalf:\n", + " if gandalf[spells] > saruman[spells]:\n", + " gandalf_wins +=1\n", + " elif gandalf[spells] < saruman[spells]:\n", + " saruman_wins +=1\n", + " spells += 1" + ] }, { "cell_type": "markdown", @@ -93,10 +107,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Gandalf wins\n" + ] + } + ], + "source": [ + "print(\"\")\n", + "if gandalf_wins > saruman_wins:\n", + " print(\"Gandalf wins\")\n", + "elif gandalf_wins < saruman_wins:\n", + " print(\"Saruman wins\")\n", + "else:\n", + " print(\"Tie\")" + ] }, { "cell_type": "markdown", @@ -128,10 +159,25 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "POWER = {\n", + " 'Fireball': 50, \n", + " 'Lightning bolt': 40, \n", + " 'Magic arrow': 10, \n", + " 'Black Tentacles': 25, \n", + " 'Contagion': 45\n", + "}\n", + "\n", + "gandalf = ['Fireball', 'Lightning bolt', 'Lightning bolt', 'Magic arrow', 'Fireball', \n", + " 'Magic arrow', 'Lightning bolt', 'Fireball', 'Fireball', 'Fireball']\n", + "saruman = ['Contagion', 'Contagion', 'Black Tentacles', 'Fireball', 'Black Tentacles', \n", + " 'Lightning bolt', 'Magic arrow', 'Contagion', 'Magic arrow', 'Magic arrow']\n", + "\n", + "spells = 0 " + ] }, { "cell_type": "markdown", @@ -142,10 +188,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "gandalf_wins = 0\n", + "saruman_wins = 0" + ] }, { "cell_type": "markdown", @@ -156,10 +205,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "gandalf_power = []\n", + "saruman_power = []" + ] }, { "cell_type": "markdown", @@ -171,10 +223,45 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Gandalf wins!\n" + ] + } + ], + "source": [ + "for i in gandalf:\n", + " gandalf_power.append (POWER[i])\n", + "\n", + "for i in saruman:\n", + " saruman_power.append (POWER[i])\n", + "\n", + "for i in gandalf_power:\n", + " if gandalf_wins < 3 and saruman_wins < 3:\n", + " if gandalf_power[spells] > saruman_power[spells]:\n", + " gandalf_wins +=1\n", + " saruman_wins = 0\n", + " elif gandalf_power[spells] < saruman_power[spells]:\n", + " saruman_wins +=1\n", + " gandalf_wins = 0\n", + " spells += 1\n", + " elif gandalf_wins == 3:\n", + " print(\"\")\n", + " print (\"Gandalf wins!\")\n", + " elif saruman_wins == 3:\n", + " print(\"\")\n", + " print (\"Saruman wins!\")\n", + "\n", + "if gandalf_wins < 3 and saruman_wins < 3:\n", + " print(\"\") \n", + " print (\"It's a tie!\")" + ] }, { "cell_type": "markdown", @@ -185,10 +272,31 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] + "execution_count": 9, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The average spell power of Gandalf is 39.0 .\n", + "\n", + "The average spell power of Saruman is 30.5 .\n" + ] + } + ], + "source": [ + "average_gandalf = sum(gandalf_power)/len(gandalf_power)\n", + "print(\"\") \n", + "print(\"The average spell power of Gandalf is\", average_gandalf, \".\")\n", + "\n", + "average_saruman = sum(saruman_power)/len(saruman_power)\n", + "print(\"\") \n", + "print(\"The average spell power of Saruman is\", average_saruman, \".\")" + ] }, { "cell_type": "markdown", @@ -199,10 +307,48 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The average deviation of Gandalf is 15.132745950421556 .\n", + "\n", + "The average deviation of Saruman is 15.56438241627338 .\n" + ] + } + ], + "source": [ + "squared_deviation_mean_gandalf = []\n", + "\n", + "for i in gandalf_power:\n", + " x = (i - average_gandalf)**2\n", + " squared_deviation_mean_gandalf.append (x)\n", + "\n", + "variance_gandalf = sum(squared_deviation_mean_gandalf)/len(squared_deviation_mean_gandalf)\n", + "\n", + "standard_deviation_gandalf = (variance_gandalf)**0.5\n", + "\n", + "print(\"\") \n", + "print (\"The average deviation of Gandalf is\", standard_deviation_gandalf, \".\")\n", + "\n", + "\n", + "squared_deviation_mean_saruman = []\n", + "\n", + "for i in saruman_power:\n", + " x = (i - average_saruman)**2\n", + " squared_deviation_mean_saruman.append (x)\n", + "\n", + "variance_saruman = sum(squared_deviation_mean_saruman)/len(squared_deviation_mean_saruman)\n", + "\n", + "standard_deviation_saruman = (variance_saruman)**0.5\n", + "\n", + "print(\"\") \n", + "print (\"The average deviation of Saruman is\", standard_deviation_saruman, \".\")\n" + ] } ], "metadata": { @@ -221,7 +367,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git a/1.-Python/3.-Bus/bus.ipynb b/1.-Python/3.-Bus/bus.ipynb index 31f09b8..328b7a7 100755 --- a/1.-Python/3.-Bus/bus.ipynb +++ b/1.-Python/3.-Bus/bus.ipynb @@ -35,7 +35,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -52,10 +52,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The number of stops is 9 .\n" + ] + } + ], + "source": [ + "print(\"\")\n", + "print(\"The number of stops is\", len(stops), \".\")" + ] }, { "cell_type": "markdown", @@ -67,10 +79,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The number of passengers at each stop is shown in the next list: [10, 13, 11, 10, 14, 10, 7, 5, 4]\n" + ] + } + ], + "source": [ + "stop_number = 0\n", + "passengers = 0\n", + "number_passengers_at_stop = []\n", + "\n", + "for i in stops:\n", + " passengers = passengers + stops[stop_number][0] - stops[stop_number][1]\n", + " number_passengers_at_stop.append (passengers)\n", + " stop_number += 1\n", + "\n", + "print(\"\")\n", + "print (\"The number of passengers at each stop is shown in the next list:\", number_passengers_at_stop)" + ] }, { "cell_type": "markdown", @@ -81,10 +114,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The maximum occupation of the bus is 14 .\n" + ] + } + ], + "source": [ + "print(\"\")\n", + "print (\"The maximum occupation of the bus is\", max(number_passengers_at_stop), \".\")" + ] }, { "cell_type": "markdown", @@ -95,10 +140,38 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The average occupation of the bus is 9.333333333333334 .\n", + "\n", + "The standard deviation of the occupation of the bus is 3.197221015541813 .\n" + ] + } + ], + "source": [ + "average_occupation = sum(number_passengers_at_stop)/len(number_passengers_at_stop)\n", + "\n", + "squared_deviation_from_mean = []\n", + "\n", + "for i in number_passengers_at_stop:\n", + " x = (i - average_occupation)**2\n", + " squared_deviation_from_mean.append (x)\n", + "\n", + "variance = sum(squared_deviation_from_mean)/len(squared_deviation_from_mean)\n", + "\n", + "standard_deviation = variance**0.5\n", + "\n", + "print(\"\")\n", + "print(\"The average occupation of the bus is\", average_occupation, \".\")\n", + "print(\"\")\n", + "print(\"The standard deviation of the occupation of the bus is\", standard_deviation, \".\")" + ] } ], "metadata": { @@ -117,7 +190,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git a/1.-Python/4.-Robin-Hood/robin-hood.ipynb b/1.-Python/4.-Robin-Hood/robin-hood.ipynb index 01de29d..9f14fb1 100644 --- a/1.-Python/4.-Robin-Hood/robin-hood.ipynb +++ b/1.-Python/4.-Robin-Hood/robin-hood.ipynb @@ -38,7 +38,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -55,10 +55,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "An arrow hit another arrow at points [(4, 5), (-3, 2), (5, 7), (2, 2)]\n" + ] + } + ], + "source": [ + "unique_points = []\n", + "duplicates = []\n", + "\n", + "for i in points:\n", + " if i not in unique_points:\n", + " unique_points.append(i)\n", + " elif i not in duplicates:\n", + " duplicates.append(i)\n", + "\n", + "print(\"\")\n", + "print(\"An arrow hit another arrow at points\", duplicates)" + ] }, { "cell_type": "markdown", @@ -70,10 +91,39 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "10 arrows fell in the first quadrant, 6 in the second quadrant, 2 in the third quadrant and 2 in the fourth.\n" + ] + } + ], + "source": [ + "q1 = []\n", + "q2 = []\n", + "q3 = []\n", + "q4 = []\n", + "\n", + "for i in points:\n", + " if i[0] > 0:\n", + " if i[1] > 0:\n", + " q1.append(i)\n", + " elif i[1] < 0:\n", + " q4.append(i)\n", + " elif i[0] < 0:\n", + " if i[1] > 0:\n", + " q2.append(i)\n", + " elif i[1] < 0:\n", + " q3.append(i)\n", + "\n", + "print(\"\") \n", + "print(len(q1), \"arrows fell in the first quadrant,\", len(q2), \"in the second quadrant,\", len(q3), \"in the third quadrant and\", len(q4), \"in the fourth.\")" + ] }, { "cell_type": "markdown", @@ -88,10 +138,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The closest points to the center are [(0, 2), (0, -2)]\n" + ] + } + ], + "source": [ + "def center_distance(point):\n", + " return (point[0]**2+point[1]**2)**(1/2)\n", + "\n", + "distances = []\n", + "closest_points = []\n", + "\n", + "for i in points:\n", + " distances.append(center_distance(i))\n", + "\n", + "for i in range(0,len(distances)):\n", + " if distances[i] == min(distances):\n", + " closest_points.append(points[i])\n", + "\n", + "print (\"\") \n", + "print (\"The closest points to the center are\", closest_points)" + ] }, { "cell_type": "markdown", @@ -101,6 +176,31 @@ "**Hint**: Use the function created in step 3. " ] }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "2 arrows won't hit the target.\n" + ] + } + ], + "source": [ + "out_of_target = 0\n", + "\n", + "for i in points:\n", + " if center_distance(i) > 9:\n", + " out_of_target += 1\n", + "\n", + "print(\"\")\n", + "print(out_of_target, \"arrows won't hit the target.\")" + ] + }, { "cell_type": "code", "execution_count": null, @@ -125,7 +225,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git a/1.-Python/5.-Temperature-Processor/temperature.ipynb b/1.-Python/5.-Temperature-Processor/temperature.ipynb index 4b597aa..8139cef 100644 --- a/1.-Python/5.-Temperature-Processor/temperature.ipynb +++ b/1.-Python/5.-Temperature-Processor/temperature.ipynb @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -53,10 +53,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "minimum_temp_C = min(temperatures_C)\n" + ] }, { "cell_type": "markdown", @@ -67,10 +69,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "maximum_temp_C = max(temperatures_C)" + ] }, { "cell_type": "markdown", @@ -81,10 +85,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "temp_above_70_C = []\n", + "\n", + "for i in temperatures_C:\n", + " if i >= 70:\n", + " temp_above_70_C.append(i)" + ] }, { "cell_type": "markdown", @@ -95,10 +105,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "average_temp_C = sum(temperatures_C)/len(temperatures_C)" + ] }, { "cell_type": "markdown", @@ -109,10 +121,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[33, 66, 65, 62.0, 59, 60, 62, 64, 70, 76, 80, 81, 80, 83, 90, 79, 61, 53, 50, 49, 53, 48, 45, 39]\n" + ] + } + ], + "source": [ + "temperatures_C = [33, 66, 65, 0, 59, 60, 62, 64, 70, 76, 80, 81, 80, 83, 90, 79, 61, 53, 50, 49, 53, 48, 45, 39]\n", + "\n", + "for i in range(0,len(temperatures_C)):\n", + " if temperatures_C[i] == 0:\n", + " average = (temperatures_C[i-1] + temperatures_C[i+1])/2\n", + " temperatures_C[i] = average\n", + "\n", + "print(temperatures_C)" + ] }, { "cell_type": "markdown", @@ -128,10 +157,59 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The temperatures measured for the day, in Fahrenheit degrees, are [91.4, 150.8, 149.0, 143.60000000000002, 138.2, 140.0, 143.60000000000002, 147.2, 158.0, 168.8, 176.0, 177.8, 176.0, 181.4, 194.0, 174.20000000000002, 141.8, 127.4, 122.0, 120.2, 127.4, 118.4, 113.0, 102.2]\n", + "\n", + "The minimum temperature is 32.0 degrees Fahrenheit.\n", + "\n", + "The maximum temperature is 194.0 degrees Fahrenheit.\n", + "\n", + "These temperatures reached the limit of 158 degrees Fahrenheit: [158.0, 168.8, 176.0, 177.8, 176.0, 181.4, 194.0, 174.20000000000002]\n", + "\n", + "The average temperature is 140.45 degrees Fahrenheit.\n" + ] + } + ], + "source": [ + "## NOTE: in order to get the correct results, please run question 5 first and then run again 1, 2, 3 and 4. \n", + "## Otherwise most values will be calculated based on the original list, and not the list with the 3AM replaced value.\n", + "\n", + "def C_to_F(x):\n", + " return (1.8*x) + 32\n", + " \n", + "temperatures_F = []\n", + "\n", + "for i in temperatures_C:\n", + " temperatures_F.append(C_to_F(i))\n", + "\n", + "minimum_temp_F = C_to_F(minimum_temp_C)\n", + "maximum_temp_F = C_to_F(maximum_temp_C)\n", + "\n", + "temp_above_158_F = []\n", + "\n", + "for i in temp_above_70_C:\n", + " temp_above_158_F.append(C_to_F(i))\n", + "\n", + "average_temp_F = C_to_F(average_temp_C)\n", + "\n", + "print(\"\")\n", + "print (\"The temperatures measured for the day, in Fahrenheit degrees, are\", temperatures_F)\n", + "print(\"\")\n", + "print(\"The minimum temperature is\", minimum_temp_F, \"degrees Fahrenheit.\")\n", + "print(\"\")\n", + "print(\"The maximum temperature is\", maximum_temp_F, \"degrees Fahrenheit.\")\n", + "print(\"\")\n", + "print(\"These temperatures reached the limit of 158 degrees Fahrenheit:\", temp_above_158_F)\n", + "print(\"\")\n", + "print(\"The average temperature is\", average_temp_F, \"degrees Fahrenheit.\")\n" + ] }, { "cell_type": "markdown", @@ -150,10 +228,26 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The cooling system needs to be changed.\n" + ] + } + ], + "source": [ + "if len(temp_above_70_C) > 4 or maximum_temp_C > 80 or average_temp_C > 65:\n", + " print(\"\")\n", + " print (\"The cooling system needs to be changed.\")\n", + "else:\n", + " print(\"\")\n", + " print (\"The cooling system does not need to be changed.\")" + ] }, { "cell_type": "markdown", @@ -175,10 +269,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "hours_greater_70_C = []\n", + "\n", + "for i in range(0,len(temperatures_C)):\n", + " if temperatures_C[i] >= 70:\n", + " hours_greater_70_C.append(i)" + ] }, { "cell_type": "markdown", @@ -189,10 +289,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "consecutive_hours = 1\n", + "\n", + "for i in range(0,(len(hours_greater_70_C)-1)):\n", + " if hours_greater_70_C[i+1] == hours_greater_70_C[i] + 1:\n", + " consecutive_hours += 1\n", + " else:\n", + " consecutive_hours = 1" + ] }, { "cell_type": "markdown", @@ -204,10 +312,26 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The cooling system needs to be changed\n" + ] + } + ], + "source": [ + "if consecutive_hours > 4 or maximum_temp_C > 80 or average_temp_C > 65:\n", + " print(\"\")\n", + " print (\"The cooling system needs to be changed\")\n", + "else:\n", + " print(\"\")\n", + " print (\"The cooling system does not need to be changed\")" + ] }, { "cell_type": "markdown", @@ -218,10 +342,45 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The average temperature in Celsius is 60.25 degrees.\n", + "\n", + "The average temperature in Farenheit is 140.45 degrees.\n", + "\n", + "The relation between both average values is the conversion formula from Celsius to Fahrenheit (average in Farenheit = 1.8 x average in Celsius + 32)\n" + ] + } + ], + "source": [ + "temp_C = [33, 66, 65, 0, 59, 60, 62, 64, 70, 76, 80, 81, 80, 83, 90, 79, 61, 53, 50, 49, 53, 48, 45, 39]\n", + "temp_F = []\n", + "\n", + "for i in temp_C:\n", + " temp_F.append(C_to_F(i))\n", + "\n", + "avg_C = sum(temp_C)/len(temp_C)\n", + "avg_F = sum(temp_F)/len(temp_F)\n", + "\n", + "print(\"\")\n", + "print(\"The average temperature in Celsius is\", avg_C, \"degrees.\")\n", + "print(\"\")\n", + "print(\"The average temperature in Farenheit is\", avg_F, \"degrees.\")\n", + "\n", + "if avg_F == C_to_F(avg_C):\n", + " print(\"\")\n", + " print (\"The relation between both average values is the conversion formula from Celsius to Fahrenheit (average in Farenheit = 1.8 x average in Celsius + 32)\")\n", + "else:\n", + " print(\"\")\n", + " print (\"The relation between both average values IS NOT the conversion formula from Celsius to Fahrenheit.\")\n", + " " + ] }, { "cell_type": "markdown", @@ -230,6 +389,56 @@ "#### 5. Find the standard deviation of the temperature lists (ºC and ºF). What is the relation between both standard deviations?" ] }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The standard deviation for the temperature in Celsius is 19.285681216902866 degrees.\n", + "\n", + "The standard deviation for the temperature in Fahrenheit is 34.71422619042516 degrees.\n", + "\n", + "The relation between both average values IS NOT the conversion formula from Celsius to Fahrenheit.\n" + ] + } + ], + "source": [ + "squared_deviation_around_mean_C = []\n", + "squared_deviation_around_mean_F = []\n", + "\n", + "for i in temp_C:\n", + " x = (i - avg_C)**2\n", + " squared_deviation_around_mean_C.append(x)\n", + "\n", + "for i in temp_F:\n", + " x = (i - avg_F)**2\n", + " squared_deviation_around_mean_F.append(x)\n", + "\n", + "variance_C = sum(squared_deviation_around_mean_C)/len(squared_deviation_around_mean_C)\n", + "variance_F = sum(squared_deviation_around_mean_F)/len(squared_deviation_around_mean_F)\n", + "\n", + "standard_deviation_C = variance_C**0.5\n", + "standard_deviation_F = variance_F**0.5\n", + "\n", + "print(\"\")\n", + "print(\"The standard deviation for the temperature in Celsius is\", standard_deviation_C, \"degrees.\")\n", + "print(\"\")\n", + "print(\"The standard deviation for the temperature in Fahrenheit is\", standard_deviation_F, \"degrees.\")\n", + "\n", + "if standard_deviation_F == C_to_F(standard_deviation_C):\n", + " print(\"\")\n", + " print (\"The relation between both average values is the conversion formula from Celsius to Fahrenheit (average in Farenheit = 1.8 x average in Celsius + 32)\")\n", + "else:\n", + " print(\"\")\n", + " print (\"The relation between both average values IS NOT the conversion formula from Celsius to Fahrenheit.\")\n", + " " + ] + }, { "cell_type": "code", "execution_count": null, @@ -254,7 +463,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git "a/1.-Python/6.-Rock\342\200\223Paper\342\200\223Scissors/rock-paper-scissors.ipynb" "b/1.-Python/6.-Rock\342\200\223Paper\342\200\223Scissors/rock-paper-scissors.ipynb" index 9e551df..aae35ac 100644 --- "a/1.-Python/6.-Rock\342\200\223Paper\342\200\223Scissors/rock-paper-scissors.ipynb" +++ "b/1.-Python/6.-Rock\342\200\223Paper\342\200\223Scissors/rock-paper-scissors.ipynb" @@ -32,10 +32,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "import random" + ] }, { "cell_type": "markdown", @@ -46,10 +48,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "gestures = [\"rock\", \"paper\", \"scissors\"]" + ] }, { "cell_type": "markdown", @@ -61,10 +65,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "n_rounds = 5" + ] }, { "cell_type": "markdown", @@ -76,10 +82,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "rounds_to_win = int(n_rounds/2) + 1" + ] }, { "cell_type": "markdown", @@ -90,10 +98,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "cpu_score = 0\n", + "player_score = 0" + ] }, { "cell_type": "markdown", @@ -105,10 +116,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "def get_cpu_gesture():\n", + " cpu_gesture = random.choice(gestures)\n", + " return cpu_gesture" + ] }, { "cell_type": "markdown", @@ -120,10 +135,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "def get_player_gesture():\n", + " player_gesture = input(\"Choose an option - rock, paper or scissors: \").casefold()\n", + " while player_gesture not in gestures:\n", + " player_gesture = input(\"You must choose a valid option! rock, paper or scissors: \").casefold()\n", + " return player_gesture" + ] }, { "cell_type": "markdown", @@ -135,10 +156,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "def check_winner(player_gesture, cpu_gesture):\n", + " if player_gesture == \"rock\":\n", + " if cpu_gesture == \"paper\":\n", + " return 1\n", + " elif cpu_gesture == \"rock\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"paper\":\n", + " if cpu_gesture == \"scissors\":\n", + " return 1\n", + " elif cpu_gesture == \"paper\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"scissors\":\n", + " if cpu_gesture == \"rock\":\n", + " return 1\n", + " elif cpu_gesture == \"scissors\":\n", + " return 0\n", + " else:\n", + " return 2" + ] }, { "cell_type": "markdown", @@ -150,10 +194,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "def round_results(player_gesture, cpu_gesture):\n", + " print (\"Your choice:\", player_gesture)\n", + " print(\"Computer's choice:\", cpu_gesture)\n", + " result = check_winner(player_gesture, cpu_gesture)\n", + " if result == 0:\n", + " print(\"It's a tie!\")\n", + " if result == 1:\n", + " print(\"Computer wins the round!\")\n", + " global cpu_score\n", + " cpu_score += 1\n", + " return cpu_score\n", + " if result == 2:\n", + " print(\"You win the round!\")\n", + " global player_score \n", + " player_score += 1\n", + " return player_score " + ] }, { "cell_type": "markdown", @@ -168,10 +229,62 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "PLAYING THE BEST IN 5 ROUNDS...\n", + "\n", + "ROUND 1 !\n", + "Choose an option - rock, paper or scissors: d\n", + "You must choose a valid option! rock, paper or scissors: ro\n", + "You must choose a valid option! rock, paper or scissors: ROCK\n", + "Your choice: rock\n", + "Computer's choice: rock\n", + "It's a tie!\n", + "\n", + "ROUND 2 !\n", + "Choose an option - rock, paper or scissors: SCISSORS\n", + "Your choice: scissors\n", + "Computer's choice: rock\n", + "Computer wins the round!\n", + "\n", + "ROUND 3 !\n", + "Choose an option - rock, paper or scissors: SCISSORS\n", + "Your choice: scissors\n", + "Computer's choice: rock\n", + "Computer wins the round!\n", + "\n", + "ROUND 4 !\n", + "Choose an option - rock, paper or scissors: PAPER\n", + "Your choice: paper\n", + "Computer's choice: rock\n", + "You win the round!\n", + "\n", + "ROUND 5 !\n", + "Choose an option - rock, paper or scissors: ROCK\n", + "Your choice: rock\n", + "Computer's choice: paper\n", + "Computer wins the round!\n" + ] + } + ], + "source": [ + "played_rounds = 0\n", + "print(\"\")\n", + "print (\"PLAYING THE BEST IN\", n_rounds, \"ROUNDS...\")\n", + "while played_rounds < n_rounds and player_score < rounds_to_win and cpu_score < rounds_to_win:\n", + " played_rounds +=1\n", + " print(\"\")\n", + " print(\"ROUND\", played_rounds, \"!\")\n", + " player_gesture = get_player_gesture()\n", + " cpu_gesture = get_cpu_gesture()\n", + " round_results(player_gesture, cpu_gesture)" + ] }, { "cell_type": "markdown", @@ -183,10 +296,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "FINAL GAME RESULT: YOU LOSE!\n" + ] + } + ], + "source": [ + "print(\"\")\n", + "if player_score > cpu_score:\n", + " print(\"FINAL GAME RESULT: YOU WIN!\")\n", + "elif player_score < cpu_score :\n", + " print(\"FINAL GAME RESULT: YOU LOSE!\")\n", + "else:\n", + " print(\"FINAL GAME RESULT: IT'S A TIE!\") " + ] }, { "cell_type": "markdown", @@ -202,6 +332,156 @@ "**Hint**: Try to reuse the code that you already coded in the previous challenge. If your code is efficient, this bonus will only consist of simple modifications to the original game." ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "How many rounds do you wish to play? (please choose an odd number bigger than zero): 3\n", + "\n", + "PLAYING THE BEST IN 3 ROUNDS...\n", + "\n", + "ROUND 1 !\n", + "Choose an option: rock, paper, scissors, lizard or spock: LIZARD\n", + "Your choice: lizard\n", + "Computer's choice: rock\n", + "Computer wins the round!\n", + "\n", + "ROUND 2 !\n", + "Choose an option: rock, paper, scissors, lizard or spock: sPOck\n", + "Your choice: spock\n", + "Computer's choice: rock\n", + "You win the round!\n", + "\n", + "ROUND 3 !\n", + "Choose an option: rock, paper, scissors, lizard or spock: scissors\n", + "Your choice: scissors\n", + "Computer's choice: paper\n", + "You win the round!\n", + "\n", + "FINAL GAME RESULT: YOU WIN!\n" + ] + } + ], + "source": [ + "## Scissors cuts Paper covers Rock crushes Lizard poisons Spock smashes Scissors decapitates Lizard eats Paper disproves Spock vaporizes Rock crushes Scissors\n", + "\n", + "import random\n", + "\n", + "gestures = [\"rock\", \"paper\", \"scissors\", \"lizard\", \"spock\"]\n", + "\n", + "n_rounds = 0\n", + "print(\"\")\n", + "while n_rounds <= 0 or n_rounds%2 == 0:\n", + " n_rounds = int(input(\"How many rounds do you wish to play? (please choose an odd number bigger than zero): \"))\n", + "\n", + "rounds_to_win = int(n_rounds/2) + 1\n", + "\n", + "cpu_score = 0\n", + "player_score = 0\n", + "\n", + "\n", + "def get_cpu_gesture():\n", + " cpu_gesture = random.choice(gestures)\n", + " return cpu_gesture\n", + "\n", + "\n", + "def get_player_gesture():\n", + " player_gesture = input(\"Choose an option: rock, paper, scissors, lizard or spock: \").casefold()\n", + " while player_gesture not in gestures:\n", + " player_gesture = input(\"You must choose a valid option! rock, paper, scissors, lizard or spock: \").casefold()\n", + " return player_gesture\n", + "\n", + "\n", + "def check_winner(player_gesture, cpu_gesture):\n", + " if player_gesture == \"rock\":\n", + " if cpu_gesture == \"paper\" or cpu_gesture == \"spock\":\n", + " return 1\n", + " if cpu_gesture == \"rock\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"paper\":\n", + " if cpu_gesture == \"scissors\" or cpu_gesture == \"lizard\":\n", + " return 1\n", + " if cpu_gesture == \"paper\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"scissors\":\n", + " if cpu_gesture == \"rock\" or cpu_gesture == \"spock\":\n", + " return 1\n", + " if cpu_gesture == \"scissors\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"lizard\":\n", + " if cpu_gesture == \"rock\" or cpu_gesture == \"scissors\":\n", + " return 1\n", + " if cpu_gesture == \"lizard\":\n", + " return 0\n", + " else:\n", + " return 2\n", + " elif player_gesture == \"spock\":\n", + " if cpu_gesture == \"paper\" or cpu_gesture == \"lizard\":\n", + " return 1\n", + " if cpu_gesture == \"spock\":\n", + " return 0\n", + " else:\n", + " return 2\n", + "\n", + "\n", + "def round_results(player_gesture, cpu_gesture):\n", + " print (\"Your choice:\", player_gesture)\n", + " print(\"Computer's choice:\", cpu_gesture)\n", + " result = check_winner(player_gesture, cpu_gesture)\n", + " if result == 0:\n", + " print(\"It's a tie!\")\n", + " if result == 1:\n", + " print(\"Computer wins the round!\")\n", + " global cpu_score\n", + " cpu_score += 1\n", + " return cpu_score\n", + " if result == 2:\n", + " print(\"You win the round!\")\n", + " global player_score \n", + " player_score += 1\n", + " return player_score \n", + "\n", + "\n", + "played_rounds = 0\n", + "print(\"\")\n", + "print (\"PLAYING THE BEST IN\", n_rounds, \"ROUNDS...\")\n", + "while played_rounds < n_rounds and player_score < rounds_to_win and cpu_score < rounds_to_win:\n", + " played_rounds +=1\n", + " print(\"\")\n", + " print(\"ROUND\", played_rounds, \"!\")\n", + " player_gesture = get_player_gesture()\n", + " cpu_gesture = get_cpu_gesture()\n", + " round_results(player_gesture, cpu_gesture)\n", + " \n", + "\n", + "print(\"\")\n", + "if player_score > cpu_score:\n", + " print(\"FINAL GAME RESULT: YOU WIN!\")\n", + "elif player_score < cpu_score:\n", + " print(\"FINAL GAME RESULT: YOU LOSE!\")\n", + "else:\n", + " print(\"FINAL GAME RESULT: IT'S A TIE!\") " + ] + }, { "cell_type": "code", "execution_count": null, @@ -226,7 +506,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.2" + "version": "3.7.4" } }, "nbformat": 4, diff --git a/2.-Statistics/10_Graded_quiz_on_Tangent_Lines_to_Functions_Exponents_Logarithms.pdf b/2.-Statistics/10_Graded_quiz_on_Tangent_Lines_to_Functions_Exponents_Logarithms.pdf new file mode 100644 index 0000000..55f2289 Binary files /dev/null and b/2.-Statistics/10_Graded_quiz_on_Tangent_Lines_to_Functions_Exponents_Logarithms.pdf differ diff --git a/2.-Statistics/11_Practice_quiz_on_Probability_Concepts.pdf b/2.-Statistics/11_Practice_quiz_on_Probability_Concepts.pdf new file mode 100644 index 0000000..99d5bfc Binary files /dev/null and b/2.-Statistics/11_Practice_quiz_on_Probability_Concepts.pdf differ diff --git a/2.-Statistics/12_Practice_quiz_on_Problem_Solving.pdf b/2.-Statistics/12_Practice_quiz_on_Problem_Solving.pdf new file mode 100644 index 0000000..39f379e Binary files /dev/null and b/2.-Statistics/12_Practice_quiz_on_Problem_Solving.pdf differ diff --git a/2.-Statistics/13_Practice_quiz_on_Bayes_Theorem_and_the_Binomial_Theorem.pdf b/2.-Statistics/13_Practice_quiz_on_Bayes_Theorem_and_the_Binomial_Theorem.pdf new file mode 100644 index 0000000..72b582e Binary files /dev/null and b/2.-Statistics/13_Practice_quiz_on_Bayes_Theorem_and_the_Binomial_Theorem.pdf differ diff --git a/2.-Statistics/14_Probability_basic_and_Intermediate_Graded_Quiz.pdf b/2.-Statistics/14_Probability_basic_and_Intermediate_Graded_Quiz.pdf new file mode 100644 index 0000000..d910353 Binary files /dev/null and b/2.-Statistics/14_Probability_basic_and_Intermediate_Graded_Quiz.pdf differ diff --git a/2.-Statistics/1_Practice_quiz_on_Sets.pdf b/2.-Statistics/1_Practice_quiz_on_Sets.pdf new file mode 100644 index 0000000..2b97110 Binary files /dev/null and b/2.-Statistics/1_Practice_quiz_on_Sets.pdf differ diff --git a/2.-Statistics/2_Practice_quiz_on_the_Number_Line_including_Inequalities.pdf b/2.-Statistics/2_Practice_quiz_on_the_Number_Line_including_Inequalities.pdf new file mode 100644 index 0000000..356b14a Binary files /dev/null and b/2.-Statistics/2_Practice_quiz_on_the_Number_Line_including_Inequalities.pdf differ diff --git a/2.-Statistics/3_Practice_quiz_on_Simplification_Rules_and_Sigma_Notation.pdf b/2.-Statistics/3_Practice_quiz_on_Simplification_Rules_and_Sigma_Notation.pdf new file mode 100644 index 0000000..d50da4c Binary files /dev/null and b/2.-Statistics/3_Practice_quiz_on_Simplification_Rules_and_Sigma_Notation.pdf differ diff --git a/2.-Statistics/4_Graded_quiz_on_Sets_Number_Line_Inequalities_Simplification_Sigma_Notation.pdf b/2.-Statistics/4_Graded_quiz_on_Sets_Number_Line_Inequalities_Simplification_Sigma_Notation.pdf new file mode 100644 index 0000000..f06f877 Binary files /dev/null and b/2.-Statistics/4_Graded_quiz_on_Sets_Number_Line_Inequalities_Simplification_Sigma_Notation.pdf differ diff --git a/2.-Statistics/5_Practice_quiz_on_the_Cartesian_Plane.pdf b/2.-Statistics/5_Practice_quiz_on_the_Cartesian_Plane.pdf new file mode 100644 index 0000000..8785ced Binary files /dev/null and b/2.-Statistics/5_Practice_quiz_on_the_Cartesian_Plane.pdf differ diff --git a/2.-Statistics/6_Practice_quiz_on_Types_of_Functions.pdf b/2.-Statistics/6_Practice_quiz_on_Types_of_Functions.pdf new file mode 100644 index 0000000..b58d1e9 Binary files /dev/null and b/2.-Statistics/6_Practice_quiz_on_Types_of_Functions.pdf differ diff --git a/2.-Statistics/7_Graded_quiz_on_Cartesian_Plane_and_Types_of_Function.pdf b/2.-Statistics/7_Graded_quiz_on_Cartesian_Plane_and_Types_of_Function.pdf new file mode 100644 index 0000000..b501560 Binary files /dev/null and b/2.-Statistics/7_Graded_quiz_on_Cartesian_Plane_and_Types_of_Function.pdf differ diff --git a/2.-Statistics/8_Practice_quiz_on_Tangent_Lines_to_Functions.pdf b/2.-Statistics/8_Practice_quiz_on_Tangent_Lines_to_Functions.pdf new file mode 100644 index 0000000..7bf0202 Binary files /dev/null and b/2.-Statistics/8_Practice_quiz_on_Tangent_Lines_to_Functions.pdf differ diff --git a/2.-Statistics/9_Practice_quiz_on_Exponents_and_Logarithms.pdf b/2.-Statistics/9_Practice_quiz_on_Exponents_and_Logarithms.pdf new file mode 100644 index 0000000..1e75e6e Binary files /dev/null and b/2.-Statistics/9_Practice_quiz_on_Exponents_and_Logarithms.pdf differ