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
def iseven(x):
if x % 2 == 0:
return x," is even"
else:
return x," is odd"
it = (1)
while it >= 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
this is the error NameError: name 'Y' is not defined