write a python program to check whether an alphabet entered by the user is vowel or consonant. (use if... else)
Answers
Answered by
0
Answer:
okkkkkkkkkkkkkkkkkkk
Answered by
5
Answer:
A python program to check whether an alphabet entered by the user is vowel or consonant.
Explanation:
l = input("Input a letter of the alphabet: ")
if l in ('a', 'e', 'i', 'o', 'u'):
print("%s is a vowel." % l)
elif l == 'y':
print("Sometimes letter y stand for vowel, sometimes stand for consonant.")
else:
print("%s is a consonant." % l)
Similar questions