simple recursion help

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


drs <drs <at> remove-to-send-mail-ecpsoftware.com> writes:
> 
> I am looking for a list of all unique strings of length x whose
> elements are from the set a, b, and c.

Does anyone know what this operation is called?  It's not permutations or
combinations as I understand them since permutations and combinations do not
allow repetition.  I assume there was already a solution for this somewhere, but
I didn't know what term to google for.

Thanks,

Steve




More information about the Python-list mailing list