Browse Source

Itertools

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

1
README.md

@ -761,7 +761,6 @@ from itertools import *
>>> permutations('abc', 2) >>> permutations('abc', 2)
[('a', 'b'), ('a', 'c'), ('b', 'a'), ('b', 'c'), ('c', 'a'), ('c', 'b')] [('a', 'b'), ('a', 'c'), ('b', 'a'), ('b', 'c'), ('c', 'a'), ('c', 'b')]
```
>>> product('ab', [1, 2]) >>> product('ab', [1, 2])
[('a', 1), ('a', 2), ('b', 1), ('b', 2)] [('a', 1), ('a', 2), ('b', 1), ('b', 2)]

Loading…
Cancel
Save