Hey @overexchange, the code for
itertools.combinations
is already in the referenced link (you can copy from there). Maybe, hold on a bit, hopefully someone would provide a simple answer.
Algorithm
tag has very skilled programmers answering the questions, excluding me :). You can also tag your question with whatever language that you like to code. —
Emma 41 secs ago