title: My python output is missing 1 word and I'm not sure why(reading from file)
body: <p>My output is missing the last word &quot;millennium&quot;. I'm not sure why.</p>
  <blockquote>
  <p>Write a program that first reads in the name of an input file,
  followed by two strings representing the lower and upper bounds of a
  search range. The file should be read using the file.readlines()
  method. The input file contains a list of alphabetical, ten-letter
  strings, each on a separate line. Your program should output all
  strings from the list that are within that range (inclusive of the
  bounds).</p>
  <p>Blockquote</p>
  </blockquote>
  <pre><code>input1.txt
  ammoniated
  millennium
  </code></pre>
  <blockquote>
  <p>and the contents of input1.txt are:</p>
  </blockquote>
  <pre><code>aspiration
  classified
  federation
  graduation
  millennium
  philosophy
  quadratics
  transcript
  wilderness
  zoologists
  </code></pre>
  <blockquote>
  <p>the output is:</p>
  </blockquote>
  <pre><code>aspiration
  classified
  federation
  graduation
  millennium
  </code></pre>
  <blockquote>
  <p>Notes:</p>
  <p>There is a newline at the end of the output. All input files are
  hosted in the zyLab and file names can be directly referred to.
  input1.txt is available to download so that the contents of the file
  can be seen. In the tests, the first word input always comes
  alphabetically before the second word input.</p>
  </blockquote>
  <p>My code:</p>
  <pre><code>fileName = input()
  lowerLimit = input()
  upperLimit = input()
  with open(fileName) as fileData:
      lst = fileData.readlines()
  
   
      
  for index, value in enumerate(lst):
      if value &gt;= lowerLimit and value &lt;= upperLimit:
          print(value.rstrip())
  </code></pre>
  <p>Program output displayed here:</p>
  <pre><code>aspiration
  classified
  federation
  graduation
  </code></pre>