Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import itertools
- >>> x = {"Milk", "Eggs", "Cookies"}
- >>> itertools.permutations(x)
- <itertools.permutations object at 0x7f416384ac50>
- >>> for i in _: print(i)
- ...
- ('Eggs', 'Cookies', 'Milk')
- ('Eggs', 'Milk', 'Cookies')
- ('Cookies', 'Eggs', 'Milk')
- ('Cookies', 'Milk', 'Eggs')
- ('Milk', 'Eggs', 'Cookies')
- ('Milk', 'Cookies', 'Eggs')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement