Power Set by leonid

W=[]
exec"w=[1]\nfor v in W:w+=[[V,[]][V==1]+[v]for V in w]\nW=w;"*input()
print`W`.translate(' 0>{,}<0'*32)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page