title: Use of next() and store next line in variable
body: <p>I am trying to grab the next line where a condition is met.</p>
  
  <pre><code>for line in file_two:
      if line.startswith('Query='):
          line = line.rstrip()
          header = line
          header_2 = next(line)
          print (header)
          print (header_2)
  </code></pre>
  
  <p>It is giving following error:</p>
  
  <pre><code>header2 = next(line)
  
  TypeError: 'str' object is not an iterator
  </code></pre>