Skip to content

Commit 45b80ce

Browse files
committed
Iterators
1 parent 6bf7d6e commit 45b80ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,15 +1385,15 @@ from itertools import *
13851385

13861386
### Iterators
13871387
```python
1388-
>>> chain([1, 2], range(3, 5))
1388+
>>> chain([1, 2], [3, 4])
13891389
[1, 2, 3, 4]
13901390

13911391
>>> compress([1, 2, 3, 4], [True, False, 1, 0])
13921392
[1, 3]
13931393

13941394
>>> # islice(<collection>, from_inclusive, to_exclusive)
1395-
>>> islice([1, 2, 3], 1, None)
1396-
[2, 3]
1395+
>>> islice([1, 2, 3, 4], 2, None)
1396+
[3, 4]
13971397
```
13981398

13991399
### Group by

0 commit comments

Comments
 (0)