Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def vowel_count(word):
- vowels=["a", "e", "i", "o", "u"]
- list_of_vowels= [ ]
- word=word.lower( ) #word is automatically converted to lower case if it contains upper cases
- word_list =list(word)
- for i in word_list:
- if i in vowels:
- list_of_vowels.append(i)
- print(len(list_of_vowels))
- vowel_count("INFORMATION")#An example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement