Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Count Vowels by catloverss
def count_vowels(text: str) -> int:
vowels = "aeiou"
count = 0
for ch in text.lower(): # make case-insensitive
if ch in vowels: # check if character is a vowel
count += 1
return count
Dec. 4, 2025
Comments: