title: Python if statement using CSV Data
body: <p>I am reading in some data from a CSV file and then printing a value based on an if statement, but it doesn't seem to make sense to me. I would expect it would print <code>equal to 1</code></p>
  
  <p>PYTHON CODE:</p>
  
  <pre><code>import csv
  
  #open CSV file
  csvfile = open("C:\\python.csv", "rb")
  data = csv.reader(csvfile)
  data = [row for row in data]
  
  #start loop through each item
  for currentrow in range(1, 2):  # numbers off due to array starting at 0
      #grab one record data [row][col]
      Count = data[currentrow][7]
  
      print "Count equals: " + Count
  
      if Count &gt; 1:
          print "greater than 1"
      if Count == 1:
          print 'equal to 1'
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>Count equals: 1.00
  greater than 1
  </code></pre>