Sierpinski Fractal by Defenestrator

y=r=2**input()
while y:
 y-=2;a=b=' '*y;x=r-y
 while x:x-=2;s=x&y and' '*8or'/__\\ /\\ ';a+=s[:4];b+=s[4:]
 print b[:-1]+'\n'+a

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

download

return top