title: Splitting an array into two arrays in Python
body: <p>I have a list of numbers like so;</p>
  
  <pre><code>7072624 through 7072631
  7072672 through 7072687
  7072752 through 7072759
  7072768 through 7072783
  </code></pre>
  
  <p>The below code is what I have so far, i've removed the word "through" and it now prints a list of numbers.</p>
  
  <pre><code>import os
  
  def file_read(fname):
      content_array = []
  
      with open (fname) as f:
          for line in f:
              content_array.append(line)
          #print(content_array[33])
  
          #new_content_array = [word for line in content_array[33:175] for word in line.split()]
  
          new_content_array = [word for line in content_array[33:37] for word in line.split()]
          while 'through' in new_content_array: new_content_array.remove('through')
  
          print(new_content_array)
  
  file_read('numbersfile.txt')
  </code></pre>
  
  <p>This gives me the following output.</p>
  
  <pre><code>    ['7072624', '7072631', '7072672', '7072687', '7072752', '7072759', '7072768', '7072783']
  </code></pre>
  
  <p>So what I'm wanting to do but struggling to find is how to split the 'new_content_array' into two arrays so the output is as follows.</p>
  
  <pre><code>    array1 = [7072624, 7072672, 7072752, 7072768]
  
      array2 = [7072631, 7072687, 7072759, 7072783]
  </code></pre>
  
  <p>I then want to be able to take each value in array 2 from the value in array 1</p>
  
  <p>7072631 - 7072624</p>
  
  <p>7072687 - 7072672</p>
  
  <p>7072759 - 7072752</p>
  
  <p>7072783 - 7072768</p>
  
  <p>I've been having a search but can't find anything similar to my situation.</p>
  
  <p>Thanks in advance!        </p>