Code Golf: Count the vowels
Started: 1574553600, F jS, Y g:i:s A
Ends: 1575158400, F jS, Y g:i:s A
Time Remaining:
Description
Write a function called vcount that takes in a string and returns an integer that is the total number of vowels in the string.
A vowel can be uppercase or lowercase. For the sake of this challenge, the letters A, E, I, O, and U without any accents or adornments are considered vowels. Assume Y does not count as a vowel.
>>> vcount("meow cat")
3
>>> vcount("tweet bird")
3
>>> vcount("woof doggie")
5
>>> vcount("fishy fishy")
2
3
>>> vcount("tweet bird")
3
>>> vcount("woof doggie")
5
>>> vcount("fishy fishy")
2
You must be logged in to submit an entry.