partition by parity by recursive

for v in sorted([(v%2,v)for v in map(int,open('../fd/0'))]+[(0,"")]):print v[1]

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

download

return to the top page