Comparing two numbers by huseyinalb

def c(x):
 a,b=map(int,x.replace("\n","").split(" "))
 y=a-b
 if y!=0:y=(y/abs(y))+2
 return "%d %s %d\n"%(a,"=< >"[y],b)
print''.join([c(x) for x in list(open('../fd/0'))])

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

download

return to the top page