My goal is to divide a list into n groups in all possible combinations (where the group has a variable length).
I found the same question answered here (Python enviro