a=1 b=1 c=2 d=-1 e=-10 print cmp(a,b), print cmp(a,c), print cmp(a,d), print cmp(a,e) #output 0 -1 1 1 a=1 b=1 c=2 d=-1 e=-10 print cmp(a,b), print cm
a=1 b=1 c=2 d=-1 e=-10 print cmp(a,b), print cmp(a,c), print cmp(a,d), print cmp(a,e) #output 0 -1 1 1 a=1 b=1 c=2 d=-1 e=-10 print cmp(a,b), print cm