Sierpinski Carpet by kt3k

a=['::']
exec"l=len(a);a=[x+[x,'  '*l][l<=i<l+l]+x for i,x in enumerate(a*3)];"*input()
for x in a:print x

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

download

return top