title: Limiting the output
body: <p>I made a dictionary using .groupdict() function, however, I am having a problem regarding elimination of certain output dictionaries.
  For example my code looks like this (tweet is a string that contains 5 elements separated by || :</p>
  <pre><code> def somefuntion(pattern,tweet):
      pattern = &quot;^(?P&lt;username&gt;.*?)(?:\|{2}[^|]+){2}\|{2}(?P&lt;botprob&gt;.*?)(?:\|{2}|$)&quot;
        for paper in tweet:
           for item in re.finditer(pattern,paper):
                item.groupdict()
  </code></pre>
  <p>This produces an output in the form:</p>
  <pre><code>{'username': 'yashrgupta ', 'botprob': ' 0.30794588629999997 '}
  {'username': 'sterector ', 'botprob': ' 0.39391528649999996 '}
  {'username': 'MalcolmXon ', 'botprob': ' 0.05630123819 '}
  {'username': 'ryechuuuuu ', 'botprob': ' 0.08492567222000001 '}
  {'username': 'dpsisi ', 'botprob': ' 0.8300337045 '}
  </code></pre>
  <p>But I would like it to only return dictionaries whose botprob is above 0.7. How do I do this?</p>