All pastes #784718 Raw Edit

Untitled

public python v1 · immutable
·published 2007-11-19 20:29 UTC
rendered paste body
def Perm(l):    if(l > 0):        for p in Perm(l - 1):            for c in range(ord('A'), ord('Z') + 1):                yield chr(c) + p            for c in range(ord('a'), ord('z') + 1):                yield chr(c) + p    else:        yield ''for i in range(1, 5):    for k in Perm(i):        print k