Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5a242a

Browse files
committed
Iterator
1 parent 09e41f6 commit d5a242a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ from itertools import count, repeat, cycle, chain, islice
216216

217217
```python
218218
<iter> = islice(<coll>, to_exclusive) # Only returns first 'to_exclusive' elements.
219-
<iter> = islice(<coll>, from_inclusive, …) # `to_exclusive [, +step_size]`.
219+
<iter> = islice(<coll>, from_inclusive, …) # `to_exclusive, step_size`.
220220
```
221221

222222

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
&lt;iter&gt; = chain.from_iterable(&lt;collection&gt;) <span class="hljs-comment"># Empties collections inside a collection in order.</span>
372372
</code></pre>
373373
<pre><code class="python language-python hljs">&lt;iter&gt; = islice(&lt;coll&gt;, to_exclusive) <span class="hljs-comment"># Only returns first 'to_exclusive' elements.</span>
374-
&lt;iter&gt; = islice(&lt;coll&gt;, from_inclusive, …) <span class="hljs-comment"># `to_exclusive [, +step_size]`.</span>
374+
&lt;iter&gt; = islice(&lt;coll&gt;, from_inclusive, …) <span class="hljs-comment"># `to_exclusive, step_size`.</span>
375375
</code></pre>
376376
<div><h2 id="generator"><a href="#generator" name="generator">#</a>Generator</h2><ul>
377377
<li><strong>Any function that contains a yield statement returns a generator.</strong></li>

0 commit comments

Comments
 (0)