Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0c3860

Browse files
committed
Product
1 parent 846bc5d commit e0c3860

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
@@ -1238,9 +1238,9 @@ from itertools import *
12381238
('b', 'a'), ('b', 'c'),
12391239
('c', 'a'), ('c', 'b')]
12401240

1241-
>>> product('ab', [1, 2])
1242-
[('a', 1), ('a', 2),
1243-
('b', 1), ('b', 2)]
1241+
>>> product('ab', '12')
1242+
[('a', '1'), ('a', '2'),
1243+
('b', '1'), ('b', '2')]
12441244

12451245
>>> product([0, 1], repeat=3)
12461246
[(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1),

0 commit comments

Comments
 (0)