X by yjyfrombnu

n = int(raw_input())\x0d
half = n/2\x0d
loop =range(half)\x0d
loop.reverse()\x0d
loop=range(half+1)+loop\x0d
for i in loop:\x0d
    if i==half:\x0d
        print ' '*(n/2)+'X'\x0d
    else:\x0d
        print ' '*i+'X'+' '*(n-(i+1)*2)+'X'\x0d
\x0d
\x0d

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

download

return top