title: I am a python newbie, I want to import values and parameters from a text file and pass it into my function. How do I do it?
body: <p>I read resources online I came to know I have to use open() but how do I do it?
  Here is the place where I am supposed to use it. </p>
  
  <pre><code>tmpl_1 = Template('X' **#arrowhead comes here from textfile**, [
      Point(0, 0),# values from txtfile comes here
      Point(1, 1),
      Point(0, 1),
      Point(1, 0)])
  tmpl_2 = Template('line', [
      Point(0, 0),
      Point(1, 0)])
  </code></pre>
  
  <p>and text file is in the form:</p>
  
  <pre><code>arrowhead
  BEGIN
  28,85
  110,80
  118,80
  127,80
  135,80
  141,80
  147,80
  152,80
  156,80
  160,80
  162,80
  164,80
  165,80
  165,80
  END
  </code></pre>
  
  <p>How do I do it?</p>