Borderizing Texts by recursive

W=raw_input().split()
for s in" _____","| "*3,"| | ","|_|__|":print s[:2]+s[1:4].join((s[4:]*9+w)[:len(w)]for w in W)+s[1::-1].rstrip()

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

download

return to the top page