Jay Parlar <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> http://www.bigbold.com/snippets/posts/show/753 A string is also iterable, so whether s is the string (as shown) or list('ACDEFGHIKLMNPQRSTVWY'), as you have it above, this should generate the 160000 permutations, as a list of 4-character strings. s = 'ACDEFGHIKLMNPQRSTVWY' x = ['%s%s%s%s' % (v,w,x,y) for v in s for w in s for x in s for y in s] -- rzed -- http://mail.python.org/mailman/listinfo/python-list