CP4E? (was: Help - just a few lines of code needed)

2006-03-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >There is some fine permutation code in the cookbook. Take a look at >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465 . > >You can easily code something like: . .

Re: Help - just a few lines of code needed

2006-03-06 Thread johnzenger
There is some fine permutation code in the cookbook. Take a look at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465 . You can easily code something like: # xcombinations from the cookbook def xcombinations(items, n): if n==0: yield [] else: for i in xrange(len(item

Re: Help - just a few lines of code needed

2006-03-06 Thread James Stroud
[EMAIL PROTECTED] wrote: > Unfortunately I am not able to program it myself, so You should learn how. Its very easy and will make your life better. Go to www.python.org. -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/

Help - just a few lines of code needed

2006-03-06 Thread lory88
Hi I hope someone can help me out with a very SIMPLE program about whole string permutations. That is: given a list of strings, the required outcome is a complete set of all their possible permutations. It's like character permutations of a string, but this time it is whole strings instead of sing