title: How to find a word in a text file and print another that is in the next line in Python
body: <p>I have a text file full of text where every time a certain word appears in one line, the next line is a number that I want to print in another text file. I have been using enumerate to find the number NEXT to the word, but I'd like the one in the following line. For example, this is the text file:</p>
  
  <pre><code>Line 1: Hello bye
  Line 2: 23
  Line 3: Adios bye
  Line 4: 45
  </code></pre>
  
  <p>I'd like the program to find the word bye and print 23 and 45. Right now I can only find Hello and print bye. How do I make it print the following line? Thank you.</p>