You program works: it
produces the expected output. (thanks,
Richard) is able to distinguish between even and odd inputs. You have just to wrap the logic in a function returning a boolean value.
Something like
def MathChallenge(num):
m = int(input("Enter number"))
if MathChallenge(m):
print(m,"is an even number")
else:
print(m,"is an odd number")