Write a Python program to test whether a passed letter is a vowel or not
I have used python 3.7 compiler for debugging purpose.
def is_vowel(char): all_vowels = 'aeiou' return char in all_vowels print(is_vowel('e')) print(is_vowel('z'))
Result:
True
False
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
Result:
True
False
need an explanation for this answer? contact us directly to get an explanation for this answer