sandglass by rolf

a=raw_input()
l=len(a)
for z in range(-~l/2)+range(l/2)[::-1]:print[" "+a[1]+a[z:l-z].center(l)[2:-2]+a[-2]+" ",a][z<1]

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

download

return to the top page