diff --git a/_sources/chap07.ipynb b/_sources/chap07.ipynb index 6f6ea57..4cd3130 100644 --- a/_sources/chap07.ipynb +++ b/_sources/chap07.ipynb @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "id": "f0c8eb18", "metadata": { "tags": [ @@ -71,7 +71,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "id": "6b8569b8-1576-45d2-99f6-c7a2c7e100c4", "metadata": {}, "outputs": [ @@ -100,7 +100,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "id": "6cb5b573-601c-42f5-a940-f1a4d244f990", "metadata": {}, "outputs": [ @@ -130,7 +130,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "id": "7040a890-6619-4ad2-b0bf-b094a5a0e43d", "metadata": {}, "outputs": [], @@ -150,7 +150,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 5, "id": "40fd553c-693c-4ffc-8e49-1d7de3c4d4a7", "metadata": {}, "outputs": [], @@ -171,7 +171,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 6, "id": "8a34174b-5a77-482a-8480-14cfdff16339", "metadata": {}, "outputs": [], @@ -193,7 +193,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 7, "id": "0909121d-5218-49ca-b03e-258206f00e40", "metadata": {}, "outputs": [], @@ -215,7 +215,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 8, "id": "3c4d8138-ddf6-46fe-a940-a7042617ceb1", "metadata": {}, "outputs": [ @@ -225,7 +225,7 @@ "False" ] }, - "execution_count": 9, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -236,7 +236,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 9, "id": "5c463051-b737-49ab-a1d7-4be66fd8331f", "metadata": {}, "outputs": [ @@ -246,7 +246,7 @@ "True" ] }, - "execution_count": 10, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -280,7 +280,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 10, "id": "a7b7ac52-64a6-4dd9-98f5-b772a5e0f161", "metadata": { "tags": [ @@ -303,7 +303,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 11, "id": "1ad13ce7-99be-4412-8e0b-978fe6de25f2", "metadata": {}, "outputs": [], @@ -321,7 +321,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 12, "id": "dc2054e6-d8e8-4a06-a1ea-5cfcf4ccf1e0", "metadata": {}, "outputs": [ @@ -331,7 +331,7 @@ "'aa\\n'" ] }, - "execution_count": 13, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -357,7 +357,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 13, "id": "eaea1520-0fb3-4ef3-be6e-9e1cdcccf39f", "metadata": {}, "outputs": [ @@ -367,7 +367,7 @@ "'aah\\n'" ] }, - "execution_count": 14, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -387,7 +387,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 14, "id": "f602bfb6-7a93-4fb8-ade6-6784155a6f1a", "metadata": {}, "outputs": [ @@ -397,7 +397,7 @@ "'aah'" ] }, - "execution_count": 15, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -420,7 +420,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 15, "id": "cf3b8b7e-5fc7-4bb1-b628-09277bdc5a0d", "metadata": { "tags": [ @@ -77552,13 +77552,7 @@ "proas\n", "probabilities\n", "probability\n", - "probable\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "probable\n", "probably\n", "proband\n", "probands\n", @@ -90586,13 +90580,7 @@ "shekels\n", "shelduck\n", "shelducks\n", - "shelf\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "shelf\n", "shelfful\n", "shelffuls\n", "shell\n", @@ -114261,7 +114249,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 16, "id": "6bf8a104", "metadata": {}, "outputs": [ @@ -114271,7 +114259,7 @@ "5" ] }, - "execution_count": 17, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -114291,7 +114279,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 17, "id": "0fe7ae60", "metadata": {}, "outputs": [ @@ -114301,7 +114289,7 @@ "7" ] }, - "execution_count": 18, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -114321,7 +114309,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 18, "id": "8a09bc24", "metadata": { "tags": [ @@ -114337,7 +114325,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 19, "id": "36a45674-7f41-4850-98f1-2548574ce958", "metadata": { "tags": [ @@ -114379,7 +114367,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 20, "id": "ba2ab90b", "metadata": { "tags": [ @@ -114393,7 +114381,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 21, "id": "88496dc4", "metadata": {}, "outputs": [ @@ -114403,7 +114391,7 @@ "8" ] }, - "execution_count": 22, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -114425,13 +114413,22 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 22, "id": "4a0c46b9", "metadata": {}, - "outputs": [], + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'z' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[0;31mNameError\u001b[0m\u001b[0;31m:\u001b[0m name 'z' is not defined\n" + ] + } + ], "source": [ "\n", - "y = y + 1" + "z = z + 1" ] }, { @@ -114445,7 +114442,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 23, "id": "2220d826", "metadata": {}, "outputs": [ @@ -114455,15 +114452,15 @@ "1" ] }, - "execution_count": 24, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "y = 0\n", - "y = y + 1\n", - "y" + "z = 0\n", + "z = z + 1\n", + "z" ] }, { @@ -114478,7 +114475,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 24, "id": "d8e1ac5a", "metadata": {}, "outputs": [ @@ -114488,14 +114485,14 @@ "3" ] }, - "execution_count": 25, + "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "y += 2\n", - "y" + "z += 2\n", + "z" ] }, { @@ -114518,7 +114515,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 25, "id": "0afd8f88", "metadata": {}, "outputs": [], @@ -114542,7 +114539,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 26, "id": "8686b2eb-c610-4d29-a942-2ef8f53e5e36", "metadata": {}, "outputs": [ @@ -114552,7 +114549,7 @@ "113783" ] }, - "execution_count": 27, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -114573,7 +114570,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 27, "id": "89a05280", "metadata": {}, "outputs": [], @@ -114598,7 +114595,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 28, "id": "9d29b5e9", "metadata": {}, "outputs": [ @@ -114608,7 +114605,7 @@ "76162" ] }, - "execution_count": 29, + "execution_count": 28, "metadata": {}, "output_type": "execute_result" } @@ -114627,7 +114624,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 29, "id": "304dfd86", "metadata": {}, "outputs": [ @@ -114637,7 +114634,7 @@ "66.93618554617122" ] }, - "execution_count": 30, + "execution_count": 29, "metadata": {}, "output_type": "execute_result" } @@ -114667,7 +114664,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 30, "id": "fe6431b7", "metadata": {}, "outputs": [ @@ -114677,7 +114674,7 @@ "False" ] }, - "execution_count": 31, + "execution_count": 30, "metadata": {}, "output_type": "execute_result" } @@ -114697,7 +114694,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 31, "id": "85d3fba6", "metadata": {}, "outputs": [], @@ -114719,7 +114716,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 32, "id": "2d653847", "metadata": {}, "outputs": [], @@ -114739,7 +114736,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 33, "id": "a92a81bc", "metadata": {}, "outputs": [ @@ -114749,7 +114746,7 @@ "'gadsby'" ] }, - "execution_count": 34, + "execution_count": 33, "metadata": {}, "output_type": "execute_result" } @@ -114768,7 +114765,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 34, "id": "d15f83a4", "metadata": {}, "outputs": [ @@ -114778,7 +114775,7 @@ "'Gadsby'" ] }, - "execution_count": 35, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" } @@ -114797,7 +114794,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 35, "id": "e7958af4", "metadata": {}, "outputs": [], @@ -114808,7 +114805,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 36, "id": "020a57a7", "metadata": {}, "outputs": [ @@ -114818,7 +114815,7 @@ "False" ] }, - "execution_count": 37, + "execution_count": 36, "metadata": {}, "output_type": "execute_result" } @@ -114829,7 +114826,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 37, "id": "0b979b20", "metadata": {}, "outputs": [ @@ -114839,7 +114836,7 @@ "True" ] }, - "execution_count": 38, + "execution_count": 37, "metadata": {}, "output_type": "execute_result" } @@ -114861,7 +114858,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 38, "id": "bd29ff63", "metadata": {}, "outputs": [], @@ -114883,7 +114880,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 39, "id": "9369fb05", "metadata": {}, "outputs": [ @@ -114893,7 +114890,7 @@ "True" ] }, - "execution_count": 40, + "execution_count": 39, "metadata": {}, "output_type": "execute_result" } @@ -114912,7 +114909,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 40, "id": "eb32713a", "metadata": {}, "outputs": [ @@ -114922,7 +114919,7 @@ "False" ] }, - "execution_count": 41, + "execution_count": 40, "metadata": {}, "output_type": "execute_result" } @@ -114941,7 +114938,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 41, "id": "7e65a9fb", "metadata": {}, "outputs": [ @@ -114951,7 +114948,7 @@ "True" ] }, - "execution_count": 42, + "execution_count": 41, "metadata": {}, "output_type": "execute_result" } @@ -114988,7 +114985,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 42, "id": "3982e7d3", "metadata": {}, "outputs": [], @@ -115025,7 +115022,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 43, "id": "40ef00d3", "metadata": {}, "outputs": [], @@ -115047,7 +115044,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": 44, "id": "f37cfd36", "metadata": {}, "outputs": [], @@ -115070,7 +115067,7 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 45, "id": "58c916cc", "metadata": {}, "outputs": [], @@ -115100,7 +115097,7 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": 46, "id": "7a325745", "metadata": {}, "outputs": [ @@ -115184,14 +115181,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 47, "id": "bc58db59", "metadata": { "tags": [ "remove-print" ] }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Exception reporting mode: Verbose\n" + ] + } + ], "source": [ "# This cell tells Jupyter to provide detailed debugging information\n", "# when a runtime error occurs. Run it before working on the exercises.\n", @@ -115839,14 +115844,6 @@ ], "source": [] }, - { - "cell_type": "code", - "execution_count": null, - "id": "102df097", - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "id": "a7f4edf8", diff --git a/chap07.html b/chap07.html index 1aa0deb..9274314 100644 --- a/chap07.html +++ b/chap07.html @@ -643,7 +643,12 @@
y = y + 1
+z = z + 1
+
+
+
NameError: name 'z' is not defined
y = 0
-y = y + 1
-y
+z = 0
+z = z + 1
+z
Exception reporting mode: Verbose
+