Returns True if there is a vowel in the given string.
(w)
| 90 | return len(w) |
| 91 | |
| 92 | def has_vowel(w): |
| 93 | """ Returns True if there is a vowel in the given string. |
| 94 | """ |
| 95 | for ch in w: |
| 96 | if ch in VOWELS: return True |
| 97 | return False |
| 98 | |
| 99 | def vowel_consonant_pairs(w, max=None): |
| 100 | """ Returns the number of consecutive vowel-consonant pairs in the word. |
no outgoing calls
no test coverage detected
searching dependent graphs…