help with code for combinations/permutations

Bryan Webb bww00 at amdahl.com
Wed Jan 17 09:32:21 EST 2001


HI,
    I have a list with 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 in it,
I need to come up with all possible combinations of the numbers in the above
list ie. 1 +2, 1+2+3, 1+2+3+4, 1+2+3+4+5 and so on.
 I will have multiple lists to deal with, larger and smaller.
Any help or ideas will be appreciated

Thanks
Bryan Webb





More information about the Python-list mailing list