We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b3590 commit d9f36c4Copy full SHA for d9f36c4
README.md
@@ -436,6 +436,14 @@ from itertools import combinations, combinations_with_replacement, permutations,
436
```
437
438
```python
439
+>>> product([0, 1], repeat=3)
440
+[(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1),
441
+ (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)]
442
+
443
+>>> product('ab', '12')
444
+[('a', '1'), ('a', '2'),
445
+ ('b', '1'), ('b', '2')]
446
447
>>> combinations('abc', 2)
448
[('a', 'b'), ('a', 'c'), ('b', 'c')]
449
@@ -448,14 +456,6 @@ from itertools import combinations, combinations_with_replacement, permutations,
456
[('a', 'b'), ('a', 'c'),
457
('b', 'a'), ('b', 'c'),
450
458
('c', 'a'), ('c', 'b')]
451
-
452
->>> product('ab', '12')
453
-[('a', '1'), ('a', '2'),
454
- ('b', '1'), ('b', '2')]
455
->>> 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)]
459
460
461
0 commit comments