title: using numerical filters to define what print list is used (I assume if filters)
body: <p>I have some code which parses an xml file obtained from a url, using the following code: </p>
  
  <pre><code>pattern4 = re.compile('title=\'Naps posted: (.*) Winners:')
  pattern5 = re.compile('Winners: (.*)\'&gt;&lt;img src=')
  
  for row in xmlload1['rows']:
      cell = row["cell"]
  
  ##### defining the Keys (key is the area from which data is pulled in the XML) for use   in the pattern finding/regex
  user_delimiter = cell['username']
  
  ##### the use of the float here is to make sure the result of the strike rate calculations returns as a decimal, otherwise python 2 rounds to the nearest integer! 
  user_numberofselections = float(re.findall(pattern4, user_delimiter)[0])
  user_numberofwinners = float(re.findall(pattern5, user_delimiter)[0])
  
  strikeratecalc1 = user_numberofwinners/user_numberofselections
  strikeratecalc2 = strikeratecalc1*100
  
  ##### Printing the results of the code at hand
  
  print "number of selections = ",user_numberofselections
  print "number of winners = ",user_numberofwinners
  print "Strike rate = ",strikeratecalc2,"%"
  print ""
  
  getData()
  </code></pre>
  
  <p>What i dont know is if it is possible to filter data and print different print lists. I think I shall have to describe an exampleS of what i would like to achieve:</p>
  
  <p>If strikeratecalc2 => 20% but also &lt;30% print "X Strike rate = ",strikeratecalc2,"%" </p>
  
  <p>If strikeratecalc2 => 30% but also &lt;40% print "Y Strike rate = ",strikeratecalc2,"%"</p>
  
  <p>If strikeratecalc2 => 40% but also &lt;50% AND user_numberofselections >100  print "Z Strike rate = ",strikeratecalc2,"%"</p>
  
  <p>If strikeratecalc2 => 50% AND user_numberofselections >100  print "ZA Strike rate = ",strikeratecalc2,"%"</p>
  
  <p>If anyone is able to offer some solutions to what I presume is probably a simple task, I will be able to reverse engineer the answers for my needs. Please let me know if more information is required. Kind regards</p>