Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def countVowels(string):
- vowels = "aeiou"
- string = string.lower()
- return sum(letter in vowel for letter in string)
- print(countVowels("some string here"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement