title: How to split string and add string positions of elements before the split?
body: <p>Example:</p>
  
  <pre><code>s="  300       january      10       20     " 
  mylist = s.split()
  mylist = ['300', 'january', '10', '20']
  </code></pre>
  
  <p>How can I create a list adding the string position of the elements before the splitting:</p>
  
  <pre><code>mylistStringPos = [['300',startpos:endpos],...] 
  mylistStringPos = [['300',2:5], '['january',12:19]', '['10',25:27]', '['20',34:36]']]
  </code></pre>
  
  <p>Is there a way in Python to do this?</p>