vowels = ['o', 'i', 'y', 'e', 'a','u'] def is_vowel2(my_word): for character in my_word: #The Character in the word defined by the letter "c" print (character in vowels) #If this character is in the list "vowels" print True, else will print False is_vowel('banana')or
vowels = ['o', 'i', 'y', 'e', 'a','u'] def is_vowel(c): return c in vowels #If this character is in the list "vowels" print True, else will print False for character in 'banana': print(is_vowel2(character))