Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #vowels in a word
- def countVowels(word_or_phrase):
- vowels = 'aeiou'
- vowelCount = 0
- for w in word_or_phrase:
- if w in vowels:
- vowelCount+=1
- return vowelCount
- print('vowels', countVowels('hippopotamus'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement