We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3329ba1 + 3fb4ca5 commit 855ad91Copy full SHA for 855ad91
examples/ch05/snippets_ipynb/05_09.ipynb
@@ -148,7 +148,7 @@
148
"outputs": [],
149
"source": [
150
"if key in numbers:\n",
151
- " print(f'found {key} at index {numbers.index(search_key)}')\n",
+ " print(f'found {key} at index {numbers.index(key)}')\n",
152
"else:\n",
153
" print(f'{key} not found')"
154
]
@@ -204,4 +204,4 @@
204
},
205
"nbformat": 4,
206
"nbformat_minor": 2
207
-}
+}
examples/ch05/snippets_py/05_09.py
@@ -29,7 +29,7 @@
29
key = 1000
30
31
if key in numbers:
32
- print(f'found {key} at index {numbers.index(search_key)}')
+ print(f'found {key} at index {numbers.index(key)}')
33
else:
34
print(f'{key} not found')
35
0 commit comments