title: How to extract text, line by line from a txt file in python
body: <p>I have a txt file like this :</p>
  
  <pre><code>audi lamborghini
  ferrari
  pagani
  </code></pre>
  
  <p>when I use this code :</p>
  
  <pre><code>with open("test.txt") as inp:
      data = set(inp.read().split())
  </code></pre>
  
  <p>this gives data as : <code>['pagani', 'lamborghini', 'ferrari', 'audi']</code></p>
  
  <p>What I want, is to extract text from the txt file, line by line such the output data is </p>
  
  <p><code>['audi lamborghini','ferrari','pagani']</code></p>
  
  <p>How this can be done ?</p>