Write a program to print the character is vowel or consonant in python

Write a program to print the character is vowel or consonant in python. Vowel or Consonant program in a python programming language. this program will check and display whether the letter is vowel or consonant. To identify the letter is actually but to do the same thing in programming language is getting complex for beginners

def VOC(x):
if (x == 'a' or x == 'e' or x == 'i' or x == 'o' or x == 'u'):
print("Vowel")
else:
print("Consonant")
VOC('e')
VOC('d')

 

Output:

Vowel

Consonant