title: Saving x,y coordinates in python
body: <p>I am generating hundreds of lines (x,y coordinates) output in a for loop. What would be the easy way to save them into a txt file at the end of the process?</p>
  
  <p>Thanks</p>
  
  <p>Example of output:
  …</p>
  
  <p>100 23</p>
  
  <p>112 18</p>
  
  <p>133 67</p>
  
  <p>221 99</p>
  
  <p>232 100</p>
  
  <p>…</p>