Skip to content

Commit 855ad91

Browse files
authored
Merge pull request #35 from a-magdy/update-05_09-var-name
Fix a var name in 05_09
2 parents 3329ba1 + 3fb4ca5 commit 855ad91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: examples/ch05/snippets_ipynb/05_09.ipynb

+2-2
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+
}

Diff for: examples/ch05/snippets_py/05_09.py

+1-1
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)