PYTHON
Write a Python program to input any alphabet and check whether it is vowel or consonant.
ch = input("Enter the Character to Check Vowel and Constant :-") if(ch=='a' or ch=='e' or ch=='i' or ch=='o' or ch=='u' or ch=='A' or ch=='E' or ch=='I' or ch=='O' or ch=='U'): print("It is a Vowel.", ch) elif((ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z')): print("It is a Consonant.", ch) else: print("It is not an alphabet.", ch)
OUTPUT


