def even(x): return x % 2 == 0 def odd(x): return not even(x)