Recursive Expansion by xsot

a='|___|',
n=3
exec"a=[x[::-1]+y+x for x,y in zip(map(''.join,zip(*[['_ __||'[cmp(b[i:i+2],'__')+1::3]for i in range(1,n+1,2)]for b in a])),a*2)];n-=~n;"*input()
print'\n'.join([' '+'_'*n]+a)

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

download

return to the top page