title: Can't use unichr in Python 3.1
body: <p>I've been looking through the <strong>Python Cookbook (2nd Edition)</strong> to learn how to process strings and characters.</p>
  <p>I wanted to try converting a number into its Unicode equivalent. So I tried using the <a href="https://docs.python.org/2/library/functions.html#unichr" rel="noreferrer">built-in function called '<strong>unichr</strong>'</a>, which, according to the Cookbook, goes something like:</p>
  <pre><code>&gt;&gt;&gt; print repr(unichr(8224))
  </code></pre>
  <p>... and will output:</p>
  <pre><code>u'\u2020'
  </code></pre>
  <p>However, the code failed. I thought it had something to do with <strong>print</strong> (because Python 3 uses print() instead of print &quot;&quot;), but that didn't work out as well. I tried several variations to the code, and it still failed. At long last, I just typed a simple line:</p>
  <pre><code>unichr(10000)
  </code></pre>
  <p>To my surprise, this error message kept popping up, no matter what value I put into the above function:</p>
  <pre><code> NameError: name 'unichr' is not defined
  </code></pre>
  <p>What could be the problem? Is there some specific module that I'm supposed to import?</p>