All problems
Syllable Estimate Vowel Groups
Problem
A common heuristic counts runs of vowels (a, e, i, o, u, y), then subtracts one for a silent trailing "e", with a minimum of one syllable.
Given a lowercase word, return the syllable estimate.
Hint
Count groups first, then handle the silent e.
Test cases
case 1
in: ["hello"]
expected: 2
case 2
in: ["cake"]
expected: 1
case 3
in: ["rhythm"]
expected: 1
Starter codePython
def syllable_estimate_vowel_groups(word):
# Your code here
pass3 test cases · run your code against them in the editor