Sierpinski Fractal by primo

n=x=1<<input()
while n:n-=1;print' '*n+''.join('/ _ \ '[n-x&k>0::2<<n%2][~n*k%2:][:2]for k in range(x-n))

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

download

return to the top page