title: Program doesn't work if fed with a large amount of data
body: <p>#This program takes in a text file and whatever the ser types in ; it searches for the specific word or phrase and then print out in which line this word or phrase is located .
  If i feed it a text file with 20 lines , it produces normal results
  As soon as i give it a 3000 worded document it produces error
  Can anyone explain this</p>
  <pre><code>while True:
      search = str(input(&quot;==&gt;&quot;))
  
      line_number = 1
  
      fslope = open(&quot;searching_in_a_textfile&quot;)
  
      for line in fslope:
          if search.lower() in line:
              print(&quot;tHE LINE NUMBER IS &quot;, line_number)
              print(&quot;THE LINE SAYS : &quot; + line)
              line_number = line_number + 1
              continue
  
          if search.upper() in line:
              print(&quot;tHE LINE NUMBER IS &quot;, line_number)
              print(&quot;THE LINE SAYS : &quot; + line)
              line_number = line_number + 1
              continue
  
          if search.title() in line:
              print(&quot;tHE LINE NUMBER IS &quot;, line_number)
              print(&quot;THE LINE SAYS : &quot; + line)
              line_number = line_number + 1
              continue
  
          else:
              line_number = line_number + 1
              continue
  
      print(&quot;END OF PRIOCESS&quot;)
  </code></pre>