Browse Source

Product

pull/3/head
Jure Šorn 6 years ago
parent
commit
a5c73a9e86
1 changed files with 3 additions and 0 deletions
  1. 3
      README.md

3
README.md

@ -846,6 +846,9 @@ from itertools import *
>>> product('ab', [1, 2])
[('a', 1), ('a', 2), ('b', 1), ('b', 2)]
>>> product([0, 1], repeat=3)
[(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)]
```
### Infinite iterators

Loading…
Cancel
Save