I cannot get the command cmp() to work.
cmp()
Here is the code:
a = [1,2,3] b = [1,2,3] c = cmp(a,b) print (c)
I am getting
In Python 3.x you can import operator and use operator module's eq(), lt(), etc... instead of cmp()
import operator
eq()
lt()