sandglass by xsot

r=raw_input()
i=l=len(r)
while i:i-=1;m=min(i,l+~i);s=r[m:l-m].center(l);print s[0]+r[1]+s[2:-2]+r[-2]+s[-1]

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

download

return to the top page