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: Ended!

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
You must be logged in to submit an entry.

Submission Queue

 
 

Your best Python entry so far

No entries submitted for the current language.

Current Ranking

Python
#1 Kylljoy 46 bytes
#2 Hydrogen 49 bytes
#3 Blake 53 bytes
#4 chilleo 201 bytes