Skip to content

Commit 3fb4ca5

Browse files
committed
Update the 05_09 var name
1 parent 62b2bac commit 3fb4ca5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/ch05/snippets_ipynb/05_09.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"outputs": [],
149149
"source": [
150150
"if key in numbers:\n",
151-
" print(f'found {key} at index {numbers.index(search_key)}')\n",
151+
" print(f'found {key} at index {numbers.index(key)}')\n",
152152
"else:\n",
153153
" print(f'{key} not found')"
154154
]
@@ -204,4 +204,4 @@
204204
},
205205
"nbformat": 4,
206206
"nbformat_minor": 2
207-
}
207+
}

examples/ch05/snippets_py/05_09.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
key = 1000
3030

3131
if key in numbers:
32-
print(f'found {key} at index {numbers.index(search_key)}')
32+
print(f'found {key} at index {numbers.index(key)}')
3333
else:
3434
print(f'{key} not found')
3535

0 commit comments

Comments
 (0)