Print strings from "a" to "zzzzz" without using any loop or conditional statements. Don't just write all 1000 permutations out by hand. The output should look like this: a
b
c
...
aa
ab
ac
...
zzzzx
zzzzy
zzzzz
inb4 lipthfags and dead dogs using some obscure functionality of their obscure languages.
def fn(fs, i, w):
p = lambda l: (lambda s: w(l + s))
f = fs[i]
i -= 1
f(fs, i, p('a'))
f(fs, i, p('b'))
f(fs, i, p('c'))
f(fs, i, p('d'))
f(fs, i, p('e'))
f(fs, i, p('f'))
f(fs, i, p('g'))
f(fs, i, p('h'))
f(fs, i, p('i'))
f(fs, i, p('j'))
f(fs, i, p('k'))
f(fs, i, p('l'))
f(fs, i, p('m'))
f(fs, i, p('n'))
f(fs, i, p('o'))
f(fs, i, p('p'))
f(fs, i, p('q'))
f(fs, i, p('r'))
f(fs, i, p('s'))
f(fs, i, p('t'))
f(fs, i, p('u'))
f(fs, i, p('v'))
f(fs, i, p('w'))
f(fs, i, p('x'))
f(fs, i, p('y'))
f(fs, i, p('z'))