Sierpinski Fractal by mskzzzz

x=2**input()/2
a=1
g=' '*4
while x:
\x09x-=1;t=s="  "*x;l=a
\x09while l:s+=[g,' /\\ '][l&1];t+=[g,'/__\\'][l&1];l/=2
\x09print s[:-1]+"\n"+t;a^=2*a

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

download

return top