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-18 14:44:36 +01:00
def is_vowel(char):
all_vowels = 'aeiou'
return char in all_vowels
print(is_vowel('c'))
print(is_vowel('e'))