programming-examples/python/_Basics/Test whether a passed letter is a vowel or not.py

5 lines
130 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
def is_vowel(char):
all_vowels = 'aeiou'
return char in all_vowels
print(is_vowel('c'))
print(is_vowel('e'))