Bit longer solution:
def starts_with_vowel(strtext):
vowels = [“a”,“e”,“i”,“o”,“u”]
first_letter = strtext[0].lower()
is_vowel = False
for v in vowels:
if v == first_letter:
is_vowel = True
return is_vowel
def starts_with_vowel(word):
vowels = ['a', 'e', 'i', 'o', 'u']
if word[0].lower() in vowels:
return True
else:
return False
This function takes in a word as an input parameter. It then checks if the first letter of the word (converted to lowercase) is present in the list of vowel letters. If it is, the function returns True, indicating that the word starts with a vowel. Otherwise, it returns False.