title: python: Name Error:name 'data_x' is not defined
body: <p>I am doing my project on incremental deep drawing using ABAQUS.<br>
  I am trying to import a text file of loop program into abaqus script so that there is no need of entering amplitude values manually.</p>
  
  <p>But I am getting an error when trying to import the data using the following code</p>
  
  <pre><code>f = open('data_x', 'r')
  values=f.read()
  values=f.readline()
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>data_x is not defined</p>
  </blockquote>