title: Printing text after searching for a string
body: <p>I am following a tutorial to identify and print the words in between a particular string;</p>
  
  <p><code>f</code> is the string <code>Mango grapes Lemon Ginger Pineapple</code></p>
  
  <pre><code>def findFruit(f):
      global fruit
      found = [re.search(r'(.*?) (Lemon) (.*?)$', word) for word in f]
          for i in found:
              if i is not None:
                  fruit = i.group(1)
                  fruit = i.group(3)
  </code></pre>
  
  <p><code>grapes</code> and <code>Ginger</code> will be outputted when i print <code>fruit</code>. However what i want the output is to look like <code>"grapes" # "Ginger"</code> (note the <code>""</code> and <code>#</code> sign).</p>