title: Python | simple if/else statement inside for loop - not working
body: <p>I've just started learning Python. After getting myself comfortable with Bash, I've decided to use Python and learn it. Please don't throw flame if this question seems stupid. </p>
  
  <p>I got this "file.txt" which contains: </p>
  
  <pre><code>81
  99
  90
  90
  70
  100
  </code></pre>
  
  <p>The if/else statement I'm using inside for loop does not seem to work:</p>
  
  <pre><code>with open('file.txt') as x:  
      for num in x:
          if num  &gt;  90 :
              print "NOT ok - ",num
          else :
              print "Okay - ",num
  </code></pre>
  
  <p>I can't understand why the output would be "NOT ok" for all the numbers.</p>
  
  <pre><code>NOT ok -  81
  
  NOT ok -  99
  
  NOT ok -  90
  
  NOT ok -  90
  
  NOT ok -  70
  
  NOT ok -  100
  </code></pre>
  
  <p>Any help would be appreciated. Thanks. </p>