Sierpinski Fractal by kt3k

a=' /\ ','/__\\'
_=' '
exec"_*=2;a=[_+x+_ for x in a]+[x*2for x in a];"*~-input()
for x in a:print x.rstrip()

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

download

return top