Diamond Knockout by twobit

a=input()
q="  123456789"
for i in range(1-a,a):w=q[2:abs(i)+3]+q;print w[:a]+w[a-2::-1]

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

download

return to the top page