Improve the following Python code:

def even_odd(x):
if x % 2 == 0:
    print ("even")
else:
    print ("odd")
not applicable
def even_odd(x):
  if isinstance(x, int):
    if x % 2 == 0:
      print("even")
    else:
      print("odd")
  else:
    print("x must be an integer")