Python program check vowel or consonant
- These vowels in the string
"A E I O U"
count as different characters than the vowels in the string"a e i o u"
- The program checks whether the entered character is equal to the lowercase or uppercase vowels
- That the Character is a Vowel otherwise it prints that the Character is a Consonant.
vc.py
chr = input("Enter The Character :> ")
print("*********************************")
if(chr=='A' or chr=='a' or chr=='E' or chr =='e' or chr=='I'
or chr=='i' or chr=='O' or chr=='o' or chr=='U' or chr=='u'):
print(chr, "is a Vowel")
print("*********************************")
else:
print(chr, "is a Consonant")
OUTPUT
Enter The Character :> A
*********************************
A is a Vowel
*********************************
Enter The Character :> B
*********************************
B is a Consonant
*********************************
0 Comments
Please Do Not Comments Any Span Or Span link..