Fill Alternating Layers by recursive

while 1:
\x09o="";p=0
\x09for c in raw_input():p^=c>" ";o+=[c,"*"][c*p==" "]
\x09print o

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

download

return to the top page