Skip to content

Commit a35ee56

Browse files
authored
removed solution from fib and removed typo
1 parent 04f13ae commit a35ee56

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

demo_generators.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"cell_type": "markdown",
279279
"metadata": {},
280280
"source": [
281-
"## Excercise\n",
281+
"## Exercise\n",
282282
"In the previous example, we knew all the student names up front. Could have just written a for-loop to iterate the list itself. But what if the list is potentially huge? Like an infinite series of numbers?\n",
283283
"\n",
284284
"\n",
@@ -299,10 +299,7 @@
299299
"source": [
300300
"# fill in this function\n",
301301
"def fib():\n",
302-
" a, b = 0,1\n",
303-
" while True:\n",
304-
" yield a\n",
305-
" a, b = b, a + b\n",
302+
" pass\n",
306303
" \n",
307304
"# testing code\n",
308305
"import types\n",

0 commit comments

Comments
 (0)