[Tutor] Re: listing all combinations of elements of a list

Lee Harr missive at hotmail.com
Sun Dec 12 23:15:09 CET 2004


>Is there a module containing a function for listing the unique k-element
>subsets of an n-item list?  I have written some code (right now I only
>need it for 2 element subsets):


Apparently not, but maybe this will help:
http://www.google.com/search?q=python+recipe+list+combinations
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the Tutor mailing list