Browse Source

Product

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

6
README.md

@ -1238,9 +1238,9 @@ from itertools import *
('b', 'a'), ('b', 'c'),
('c', 'a'), ('c', 'b')]
>>> product('ab', [1, 2])
[('a', 1), ('a', 2),
('b', 1), ('b', 2)]
>>> product('ab', '12')
[('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),

Loading…
Cancel
Save