one-file-projects/azzzzz.py
2014-08-31 06:14:41 +02:00

7 lines
249 B
Python

def fn(pre,n):
p = (lambda c: print(pre+c),lambda c: fn(pre+c,n-1))[min(n,1)]
list(map(p,['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']))
p = lambda n: fn('',n)
list(map(p,[0,1,2,3,4]))