programming-examples/python/_Basics/Test whether a passed letter is a vowel or not.py
2019-11-15 12:59:38 +01:00

5 lines
130 B
Python

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