Log In   Register

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:


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")
>>> vcount("tweet bird")
>>> vcount("woof doggie")
>>> vcount("fishy fishy")
You must be logged in to submit an entry.

Submission Queue


Your best Python entry so far

Current Ranking