Python program to test whether passed letter is vowel or not


Topic: Python program to test whether passed letter is vowel or not

Solution

def is_vowel(char):
    all_vowels = 'aeiou'
    return char in all_vowels
print(is_vowel('c'))
print(is_vowel('e'))



List all Python Programs