comma format by hallvabo (recursion)

f=lambda s:s and f(s[:-3])+','+s[-3:]
while 1:print f(`input()`)[1:]

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

download

return to the top page