title: Splitting the sentences in python
body: <p>I am trying to split the sentences in words. </p>
  
  <pre><code>words = content.lower().split()
  </code></pre>
  
  <p>this gives me the list of words like</p>
  
  <pre><code>'evening,', 'and', 'there', 'was', 'morning--the', 'first', 'day.'
  </code></pre>
  
  <p>and with this code:</p>
  
  <pre><code>def clean_up_list(word_list):
      clean_word_list = []
      for word in word_list:
          symbols = "~!@#$%^&amp;*()_+`{}|\"?&gt;&lt;`-=\][';/.,']"
          for i in range(0, len(symbols)):
              word = word.replace(symbols[i], "")
          if len(word) &gt; 0:
              clean_word_list.append(word)
  </code></pre>
  
  <p>I get something like:</p>
  
  <pre><code>'evening', 'and', 'there', 'was', 'morningthe', 'first', 'day'
  </code></pre>
  
  <p>if you see the word "morningthe" in the list, it used to have "--" in between words. Now, is there any way I can split them in two words like <code>"morning","the"</code>??</p>