Browse Source

Combinations

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

3
README.md

@ -935,7 +935,8 @@ from itertools import *
>>> combinations_with_replacement('abc', 2)
[('a', 'a'), ('a', 'b'), ('a', 'c'),
('b', 'b'), ('b', 'c'), ('c', 'c')]
('b', 'b'), ('b', 'c'),
('c', 'c')]
>>> permutations('abc', 2)
[('a', 'b'), ('a', 'c'),

Loading…
Cancel
Save