whatever=input("Enter something
")
vowels = ['a', 'e', 'i', 'o', 'u']
vowelp = ([i for i in whatever if i in vowels])
vowelcount = len([i for i in whatever if i in vowels])
print ("there are", vowelcount, "vowels (y is not counted)")
print ("the vowels are:", vowelp)
def get_vowels(word:str):
"""
return the number of vowels that has a word
Args:
word (str): the word used to find the number of vowels
"""
vowels = ['a', 'e', 'i', 'o', 'u']
number_of_vowels = 0
for letter in word:
for vowel in vowels:
if letter == vowel:number_of_vowels+=1;break
return number_of_vowels