Zigzag by recursive

w,_,c=raw_input();w=int(w)
s=c+_*2*w
i=0
exec'print i/2*" "+(s[:-i-3]+s[:i])*~-w+c;i+=2;'*w

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

download

return to the top page