title: How to fix append function
body: <p>I'm very new to Python and I think the problem in my code is that my append function isn't working properly. What I'm trying to do is get my code to go line by line through a file and print as many location names as possible. As far as I can tell it is going through line by line but my output is nothing but empty brackets. I was wondering if anyone could tell me what I'm doing wrong please?</p>
  <pre class="lang-py prettyprint-override"><code>for item in entry:
      if (identifying_keywords in entry):
          location_holder = entry[(entry.find(&quot;identifying_keywords&quot;)+6):]
          location_list.append(location_holder)
          
  print(location_list)
  </code></pre>