Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #a program to count numbers of vowel
- def vowel_count(text): #function for the vowel count
- return text.count("a") + text.count("e") + text.count("i") + text.count("o") + text.count("u")
- print(vowel_count("helicopter")) #output the numbers of vowel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement