# prompt: find the vowels in given name
# prompt: find the vowels in given name
def find_vowels(name):
vowels = "aeiouAEIOU"
vowel_list = []
for letter in name:
if letter in vowels:
vowel_list.append(letter)
return vowel_list
name = input("Enter a name: ")
vowels_in_name = find_vowels(name)
print("Vowels in the name:", vowels_in_name)
Comments
Post a Comment