title: Searching a text file and printing line numbers
body: <p>How do you get your function to find the lines in the text file where the word occurs and print the corresponding line numbers?</p>
  
  <p>I had to open a text file with the paragraph and then am supposed to search the paragraph for certain words and then print the specific line numbers for the words.  </p>
  
  <p>Here is what I have so far.</p>
  
  <pre><code>words = [network, devices, computer, fire, local, area, room, single]
      def index(string):
         lines = open('Network.txt', 'r')
         string = str(lines.read())
         lines.close()
         return string
  </code></pre>