Introduction:
This program test whether a passed letter is vowel or not.
PROGRAM:
def is_vowel(char): all_vowels = 'aeiou' return char in all_vowels print(is_vowel('c')) print(is_vowel('e'))
Output:
True
False
Comments
Post a Comment