Write a Python program to test whether a passed letter is a vowel or not

Write a Python program to test whether a passed letter is a vowel or not

1
2
3
4
5
def is_vowel(char):
    all_vowels = 'aeiou'
    return char in all_vowels
print(is_vowel('c'))
print(is_vowel('e'))

Final output

Leave a Comment