In: Computer Science
Write Python code that checks if an existing variable letter is a lowercase vowel. If it is a, e, i, o, or u and print out "Yes, it is a lowercase vowel". If the letter is y, print out "The letter is a consonant". If the letter is anything else, print out "No, the letter is not a vowel".
(language python)
CODE:
ch = input("Enter a character: ")
if ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u':
print("Yes, it is a lowercase vowel")
elif (ord(ch) >= 65 and ord(ch) <= 90):
print("No, the letter is not a vowel")
else:
print("The letter is a consonant")
SCREENSHOTS::