As referenced in the remarks, cmp doesn't exist in Python 3. In the event that you truly need it, you could characterize it yourself:
def cmp(a, b):
return (a > b) - (a < b)
which is taken from the first What's New In Python 3.0. It's quite uncommon - however not unfathomable - that it's truly required, however, so you should consider whether it's really the most ideal approach to do whatever it is you're doing.
Join the python training course and gain more knowledge in python