title: How to use cmp() in Python 3?
body: <p>I cannot get the command <code>cmp()</code> to work.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>a = [1,2,3]
  b = [1,2,3]
  c = cmp(a,b)
  print (c)
  </code></pre>
  
  <p>I am getting the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "G:\Dropbox\Code\a = [1,2,3]", line 3, in &lt;module&gt;
      c = cmp(a,b)
   NameError: name 'cmp' is not defined
  [Finished in 0.1s]
  </code></pre>