title: Lines from a text file into a set (Python)
body: <p>I am writing a program and I want to load lines from a text file into a set/list.</p>
  
  <p>I want a user to input five numbers (separated by spacebar) my program will check how many times a user would win with these numbers. Lottery results are separated by commas if minimum 3 numbers match with lottery results on a given day my program will print all matching results something like:</p>
  
  <pre><code>"Three of your numbers match with:
  01.27.1957 8,12,31,39,43,45
  01.27.1957 8,12,31,39,43,45"
  
  "Four of your numbers match with:
  01.27.1957 8,12,31,39,43,45
  01.27.1957 8,12,31,39,43,45
  
  "Five of your numbers match with:
  01.27.1957 8,12,31,39,43,45
  01.27.1957 8,12,31,39,43,45"
  </code></pre>
  
  <p>My text file looks like this:</p>
  
  <pre><code>index date lottery_results
  
  1. 01.27.1957 8,12,31,39,43,45
  2. 02.03.1957 5,10,11,22,25,27
  3. 02.10.1957 18,19,20,26,45,49
  4. 02.17.1957 2,11,14,37,40,45
  </code></pre>
  
  <p>and so on...</p>
  
  <p>I am stuck I don't even know how to start with this.</p>
  
  <pre><code>def read_data():
      results = open("dl.txt", 'r')
  </code></pre>