title: How to convert a list of points in a file to two separate arrays?
body: <p>How to convert a list of points in a file to two separate arrays?</p>
  <p>File: data.txt</p>
  <pre><code>{(1.1,2.2),(3.3,4.4),(5.5,6.6),(7.7,8.8),(9.9,10),(11,12)}
  
  f = open(&quot;data.txt&quot;, &quot;r&quot;)
  print(f.read()) 
  sread= f.read() 
  f.close()
  </code></pre>
  <p>Outputs:</p>
  <pre><code>&gt;&gt;&gt; print(x)
  [1.1 3.3 5.5 7.7 9.9 11]
  
  &gt;&gt;&gt; print(y)
  [2.2 4.4 6.6 8.8 10 12]
  </code></pre>