sismex01 at hebmex.com writes: > Does anybody have a clear, simple, permutations algorithm > in Python? Since you've already received sensible answers, this one's just for fun. def perm(s): return [[s[i]] + x \ for i in range(len(s)) \ for x in perm(s[:i] + s[i+1:])] or [[]] Can anyone come up with a shorter one?