Number guess 1000 by twobit

while 1:
 i=input();a=b=1e3
 while a-i:b/=2;a=int(a+[-b,b][a<i]+.5);print a,"=<>"[cmp(i,a)]
 print

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

download

return to the top page