title: python code has a name error in a while loop
body: <p>this is all of my code so far. the function works if I input x manually. I'm also just starting out so any general info on how to generally make it more pythonic would be apreciated</p>
  
  <pre><code>def iseven(x):
      if x % 2 == 0:
          return x," is even"
      else:
      return x," is odd"
  it = (1)
  while it &gt;= 0:
      number = input("What number: ")
      print iseven(number)
      new_num = input("another number? answer (Y/N):")
      if new_num == "Y":
          it += 1
      else:
          it = 0
  </code></pre>
  
  <p>this is the error
      NameError: name 'Y' is not defined</p>