Skip to content

Commit 27bf77a

Browse files
committed
fix typos in iterators-and-generators.ipynb
1 parent df76220 commit 27bf77a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Iterators and Generators/iterators-and-generators.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@
480480
"cell_type": "markdown",
481481
"metadata": {},
482482
"source": [
483-
"Many of Python’s built-in functions that operate on sequences are generators themselves (albeit sometimes a special type of genera‐\n",
484-
"tor). For example, `range` returns a generator of values as opposed to the actual list of numbers within the specified range. Similarly,\n",
483+
"Many of Python’s built-in functions that operate on sequences are generators themselves (albeit sometimes a special type of generators). For example, `range` returns a generator of values as opposed to the actual list of numbers within the specified range. Similarly,\n",
485484
"`map`, `zip`, `filter`, `reversed`, and `enumerate` all perform the calculation as needed and don’t store the full result. This means that the\n",
486485
"operation `zip(range(100_000), range(100_000))` will always have only two numbers in memory in order to return its corresponding values, instead of precalculating the result for the entire range beforehand."
487486
]
@@ -711,7 +710,7 @@
711710
"cell_type": "markdown",
712711
"metadata": {},
713712
"source": [
714-
"The main library of interest is **`itertools`**, in the standard library. It supplies many other useful functions, including these:\n",
713+
"The main library of interest is **`itertools`**, in the standard library. It supplies many useful functions, including these:\n",
715714
"- `islice`: Allows slicing a potentially infinite generator\n",
716715
"- `chain`: Chains together multiple generators\n",
717716
"- `takewhile`: Adds a condition that will end a generator\n",

0 commit comments

Comments
 (0)