title: How to delete character from a string?
body: <p>I'm a beginner in python and i started to learn python 3 without learning python 2. I'm trying to apply the <code>string.translate()</code> function which I've learnt  that is not supported in python 3. </p>
  
  <pre><code>from string import maketrans
  
  
  intab = "0123456789"
  outtab = ""
  trantab = maketrans(intab, outtab)
  str = "p1y2t3h4o5n6"
  print(str.translate(trantab))
  </code></pre>
  
  <p>running it gives following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Nahid\Desktop\test.py", line 1, in &lt;module&gt;
  from string import maketrans
  ImportError: cannot import name 'maketrans'
  </code></pre>
  
  <p>I intend to get the output as <code>python</code>. How can I do that?</p>