title: How to split and store only some values in python?
body: <p>Having this text file :</p>
  
  <pre><code>Breathing 1:-29.9396 9:-32.0895 13:-35.6787 2:-36.8527 17:-37.3622 8:-38.0584 14:-38.5265 18:-38.7567 16:-38.7663 12:-39.1036 7:-39.5838 4:-40.653 15:-41.2627 3:-42.5983 5:-43.5966 10:-48.5747 11:-48.8823 6:-241.384
  Breathing 1:-30.3629 9:-30.9582 17:-34.2767 13:-34.2944 14:-35.9349 16:-36.4528 2:-36.5194 18:-37.2092 8:-37.425 12:-37.5344 15:-38.001 3:-38.4113 7:-38.8753 5:-40.2013 4:-42.5538 10:-43.9502 11:-44.9487 6:-227.162
  Breathing 1:-30.3253 9:-36.9927 8:-38.0383 4:-39.9291 13:-40.0669 2:-40.3448 18:-40.8734 14:-40.8901 16:-41.7204 12:-42.6082 7:-43.1386 17:-44.0876 3:-48.8257 15:-48.8814 5:-51.2907 11:-58.4311 10:-59.1803 6:-266.998
  Breathing 15:-35.338 9:-35.8658 17:-38.6632 12:-39.154 13:-40.9085 3:-42.836 1:-43.3277 11:-43.684 2:-43.8531 8:-45.7809 18:-46.9128 16:-47.028 14:-47.6292 5:-49.7012 7:-49.8664 4:-61.5319 10:-93.743 6:-215.678
  Breathing 18:-27.0995 14:-29.5464 1:-30.6396 9:-30.9543 13:-33.1009
  </code></pre>
  
  <p>how do i store the values after <code>:-</code> in elements of an array?</p>
  
  <p>i know this code :</p>
  
  <pre><code>for line in lines:
      items = line.split()[1:]
      items = [item.split(':')[0] for item in items]
      items = map(int,items)
      rows.append(items)
  </code></pre>
  
  <p>stores the ones before <code>:</code>. </p>