Design a function to tell if a number is even or odd using Python.
x = 5
def isEven(x):
    if x % 2 == 0:
        return True
    else:
        return False

x = 5

if isEven(x):
    print("It is even")
else:
    print("It is odd")