simple recursion help

Steven Bethard steven.bethard at gmail.com
Sat Oct 23 16:16:33 EDT 2004


drs <drs <at> remove-to-send-mail-ecpsoftware.com> writes:
> 
> Hi,  I am trying to find all lists of length x with elements a, b, and c.

I'm not sure exactly what you're looking for here.  It would help if you gave an
example of some input and the output you want to produce.

Seems you might be looking for the permutations of a list.  If so, check the
ASPN Cookbook:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465

If this is not what you're looking for, please give us a little more info on the
problem.

Steve




More information about the Python-list mailing list