title: How to replace the puntuation marks in words with effective code?
body: <p>I have been working on a file which has lot of puntuations and we need to neglect the puntuations so we can count the actual length of words.</p>
  
  <p>Example:</p>
  
  <p>Is this stack overflow! ---> Is this stack overflow</p>
  
  <p>While doing this I did wrote a lot of cases for each and every punctuation which is there which made my code work slow.So I was looking for some effective way to implement the same using a module or function.</p>
  
  <p>Code snippet :</p>
  
  <pre><code>with open(file_name,'r') as f:
       for line in f:
           for word in line.split():
              #print word
              '''
                  Handling Puntuations
              '''
              word = word.replace('.','')
              word = word.replace(',','')
              word = word.replace('!','')
              word = word.replace('(','')
              word = word.replace(')','')
              word = word.replace(':','')
              word = word.replace(';','')
              word = word.replace('/','')
              word = word.replace('[','')
              word = word.replace(']','')
              word = word.replace('-','')
  </code></pre>
  
  <p>So form this logic I have written this, so is there any way to minimize this?</p>