def odd(x): x % 2 return x > 0
Why does my function return True for even numbers?
you need to change it to:
x = x % 2
to actually update the variable in line 2.