title: Not getting expected output for some reason?
body: <p>Question: please debug logic to reflect expected output</p>
  <pre class="lang-py prettyprint-override"><code>import re
  
  
  text = &quot;Hello there.&quot;
  
  word_list = []
  
  for word in text.split():
  
  tmp = re.split(r'(\W+)', word)
  
  word_list.extend(tmp)
  
  print(word_list)
  </code></pre>
  <p>OUTPUT is :</p>
  <p><code>['Hello', 'there', '.', '']</code></p>
  <p>Problem: needs to be expected without space</p>
  <p>Expected: <code>['Hello', 'there', '.']</code></p>