Browse Source

Iterators

pull/9/head
Jure Šorn 5 years ago
parent
commit
9efe21f32b
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -934,7 +934,7 @@ Itertools
from itertools import *
```
### Combinatoric Iterators
### Combinatoric iterators
```python
>>> combinations('abc', 2)
[('a', 'b'), ('a', 'c'), ('b', 'c')]
@ -958,7 +958,7 @@ from itertools import *
(1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)]
```
### Infinite Iterators
### Infinite iterators
```python
>>> i = count(5, 2)
>>> next(i), next(i), next(i)

Loading…
Cancel
Save