Python
if(c=='A' or c=='a' or c=='E' or c =='e' or c=='I'
or c=='i' or c=='O' or c=='o' or c=='U' or c=='u'):
print(c, "is Vowel\n")
else:
print(c, "is Consonant\n")
Try it Yourself ➠
Alphabet is Vowel or Consonant in PYTHON
14 May
2
Write a program (WAP) in PYTHON to read two numbers from keyboard(User Input) to know a character is vowel or consonant.
c = input("Enter a character:\n")if(c=='A' or c=='a' or c=='E' or c =='e' or c=='I'
or c=='i' or c=='O' or c=='o' or c=='U' or c=='u'):
print(c, "is Vowel\n")
else:
print(c, "is Consonant\n")
Try it Yourself ➠
Must Read :-
Previous article
Next article
visualcv says
ReplyDeleteThat a very valuable information, no doubt its true
Admin Says :
Deletehihi... Thnqhhh :)