Create a Python program to detect whether a given number is even or odd.
def detect_even_or_odd(num):
 if num % 2 == 0:
 print(num, "is Even")
 else:
 print(num, "is Odd")

if __name__ == "__main__":
 num = int(input("Enter a number: "))
 detect_even_or_odd(num)