File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,10 @@ element of a sequence. So let's test out our understanding:
134134
135135 As we can see that after yielding all the values ``next() `` caused a
136136``StopIteration `` error. Basically this error informs us that all the
137- values have been yielded. You might be wondering that why don't we get
138- this error while using a ``for `` loop? Well the answer is simple. The
137+ values have been yielded. You might be wondering why we don't get
138+ this error when using a ``for `` loop? Well the answer is simple. The
139139``for `` loop automatically catches this error and stops calling
140- ``next ``. Do you know that a few built-in data types in Python also
140+ ``next ``. Did you know that a few built-in data types in Python also
141141support iteration? Let's check it out:
142142
143143.. code :: python
You can’t perform that action at this time.
0 commit comments