title: TypeError: unorderable types: NoneType() > int() float error
body: <pre><code>import csv
  import requests
  csv_file = "cmiday.csv"
  reader = csv.DictReader(open(csv_file))
  data = list(reader)
  x=[]
  y=[]
  for row in data:
  
  try:
      hum=float(row['max_rel_hum'])
      percip=float(row['precip'])
  except ValueError:
      hum=None
      percip=None
  if hum &gt; 0 and hum &lt; 100 and percip &lt; 10 and percip &gt; 0:
      x.append(hum)
      y.append(percip)
  </code></pre>
  
  <p>This is my code and I'm getting a </p>
  
  <pre><code>TypeError: unorderable types: NoneType() &gt; int()
  </code></pre>
  
  <p>in line 15. Any idea how to get rid of it? Thanks</p>
  
  <p><img src="https://i.stack.imgur.com/guhYl.png" alt=""></p>