File tree 1 file changed +3
-3
lines changed
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:
134
134
135
135
As we can see that after yielding all the values ``next() `` caused a
136
136
``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
139
139
``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
141
141
support iteration? Let's check it out:
142
142
143
143
.. code :: python
You can’t perform that action at this time.
0 commit comments