programming-examples/python/Basics/Test whether a passed letter is a vowel or not.py
2019-11-18 14:44:36 +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'))