title: How to combine these functions into a program? (python)
body: <p>I wrote 2 functions</p>
  
  <p>The first one reads a file and gives number rows in a list:
  eg: 
      input 1,2,3=4,5,6=7=9,10,11</p>
  
  <pre><code>def read_coordinates():
  invoerfile = open("coordinates.txt", "r")
  lines = invoerfile.readlines()
  for line in lines:
      seperate_coordinate_rows = line.split("=")
      for seperate_coordinate_row in seperate_coordinate_rows:
          print seperate_coordinate_row.split()
  </code></pre>
  
  <p>output:
      ["1,2,3"] 
      ["4,5,6"] 
      ["7"] 
      ["9,10,11"]</p>
  
  <p>and this one weaves 2 lines into eachother:</p>
  
  <p>eg: 
      ["1,2,3"] ["4,5,6"] becomes ["1,4,2,5,3,6"]</p>
  
  <pre><code>def Weave_number_rows(row1,row2): #enter 2 rows of numbers as lists
  l1 = row1
  l2 = row2
  woven = sum(zip(l1, l2), ())
  print woven  
  </code></pre>
  
  <p>how can these 2 work together such that python evrytime weaves the existing row into the next row?</p>