From e13807711e6b919ee45e2bd4bd8922a838ff79f6 Mon Sep 17 00:00:00 2001 From: Cecilia Cisneros Date: Thu, 20 Apr 2017 11:13:34 -0500 Subject: [PATCH] change deep to deeper --- Iterators and Generators.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iterators and Generators.ipynb b/Iterators and Generators.ipynb index e97fbd9..ee23bd2 100644 --- a/Iterators and Generators.ipynb +++ b/Iterators and Generators.ipynb @@ -15,7 +15,7 @@ "\n", "We've touch on this topic in the past when discussing the range() function in Python 2 and the similar xrange(), with the difference being the xrange() was a generator.\n", "\n", - "Lets explore a little deep. We've learned how to create functions with **def** and the **return** statement. Generator functions allow us to write a function that can send back a value and then later resume to pick up where it left off. This type of function is a generator in Python, allowing us to generate a sequence of values over time. The main difference in syntax will be the use of a **yield** statement.\n", + "Lets explore a little deeper. We've learned how to create functions with **def** and the **return** statement. Generator functions allow us to write a function that can send back a value and then later resume to pick up where it left off. This type of function is a generator in Python, allowing us to generate a sequence of values over time. The main difference in syntax will be the use of a **yield** statement.\n", "\n", "In most aspects, a generator function will appear very similar to a normal function. The main difference is when a generator function is compiled they become an object that support an iteration protocol. That means when they are called in your code the don't actually return a value and then exit, the generator functions will automatically suspend and resume their execution and state around the last point of value generation. The main advantage here is that instead of having to compute an entire series of values upfront and the generator functions can be suspended, this feature is known as *state suspension*.\n", "\n",