user
Task: Generate a program to check if a number is even or odd.

No input

Answer:
assistant
def even_odd(num): 
  if (num % 2 == 0): 
    print("Even")  
  else: 
    print("Odd")

# Driver code 
num = int(input("Enter a number"))
even_odd(num)