Multiplication table by clock

r=range(input()+1)
for i in r:print''.join('%-4d'%(i*j or i+j)for j in r).strip()

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

download

return top