Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit c74f09a

Browse files
typos
1 parent f4c10f3 commit c74f09a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

book/08/traceback.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"source": [
5858
"This particular traceback has two levels. You can determine the number of levels by looking for the number of arrows on the left hand side. In this case:\n",
5959
"\n",
60-
"1. The first shows code from the cell above, with an arrow pointing to Line 11 (which is `favorite_ice_cream()`).\n",
61-
"2. The second shows some code in the function `favorite_ice_cream`, with an arrow pointing to Line 9 (which is `print(ice_creams[3])`).\n",
60+
"1. The first shows code from the cell above, with an arrow pointing to Line 9 (which is `favorite_ice_cream()`).\n",
61+
"2. The second shows some code in the function `favorite_ice_cream`, with an arrow pointing to Line 7 (which is `print(ice_creams[3])`).\n",
6262
"\n",
6363
"The last level is the actual place where the error occurred. The other level(s) show what function the program executed to get to the next level down. So, in this case, the program first performed a function call to the function `favorite_ice_cream`. Inside this function, the program encountered an error on Line 6, when it tried to run the code `print(ice_creams[3])`.\n",
6464
"\n",
@@ -147,7 +147,7 @@
147147
":class: tip, dropdown\n",
148148
"1. 3 levels\n",
149149
"2. `print_message`\n",
150-
"3. 13\n",
150+
"3. 11\n",
151151
"4. `IndexError`\n",
152152
"5. `list index out of range` You can then infer that `7` is not the right index to use with `messages`.\n",
153153
"```"

0 commit comments

Comments
 (0)