Implement the function which should return true
if given object is a vowel (meaning a, e, i, o, u
), and false
otherwise.
def is_vowel(s):
pass
def is_vowel(s):
return s.lower() in ["a", "e", "i", "o", "u"] if len(s) > 0 else False
Implement the function which should return true
if given object is a vowel (meaning a, e, i, o, u
), and false
otherwise.
def is_vowel(s):
pass
def is_vowel(s):
return s.lower() in ["a", "e", "i", "o", "u"] if len(s) > 0 else False