Number guess 1000 by recursive

while 1:
 a=input();c=d=g=500
 while c:c=cmp(a,g);print g,"=<>"[c];d/=2.;g=int(g+c*d+.5)
 print

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

download

return top