Python Program to check if given character is vowel or consonant
Write Python Program to check if given character is vowel or consonant
# Python Program to check if given character is vowel or consonant c = input("Enter the character :--> ") if c == 'a'or c == 'e' or c == 'i' or c == 'o' or c == 'u' : print("The given character is vowel") else: print("The given character is consonant")
Output:
Run 1:
Enter the character :--> P
The given character is consonant
Run 2:
Enter the character :--> e
The given character is vowel