While generating all possible combinations itertools.combinations_with_replacement() vs itertools.product()?
21:22 19 Jan 2014

While writing a program that finds all the different combos for a list, I found a lot of threads about using intertools.product() instead of intertools.combinations_with_replacement(), as I have been doing. No one explained why you should use intertools.product. I would love to know how this affects my program output.

python combinations combinatorics cartesian-product