title: Python AttributeError: module 'string' has no attribute 'maketrans'
body: <p>I am receiving the below error when trying to run a command in Python 3.5.2 shell:</p>
  
  <pre><code>Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit      
  (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.
  
  &gt;&gt;&gt; folder = 'C:/users/kdotz/desktop'
  &gt;&gt;&gt; f = open(folder + '/genesis.txt', 'r')
  &gt;&gt;&gt; import operator, time, string
  &gt;&gt;&gt; start=time.time()
  &gt;&gt;&gt; genesis = {}
  &gt;&gt;&gt; for line in f:
  line=line.split()
  for word in line:
      word = word.lower()
      new_word=word.translate(string.maketrans("",""), string.punctutation)
      if new_word in genesis:
          genesis[new_word]+=1
      else:
          genesis[new_word]=1
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#15&gt;", line 5, in &lt;module&gt;
  new_word=word.translate(string.maketrans("",""), string.punctutation)
  AttributeError: module 'string' has no attribute 'maketrans'
  </code></pre>
  
  <p>What am I doing incorrectly? I import string at the top of the code. Thanks in advance for the help!</p>