β back to unit
Easy
# searching easy
Count the Consonants
Vowels are overrated β the secret club only counts consonants! π€«
You get a lowercase word. Count the letters that are NOT vowels (a, e, i, o, u) and print the count.
Example:
Input: word = "dragon"
Output: 4
d, r, g, n are consonants (4 of them) β a and o are vowels and don't count.
π‘ need a hint?
srch-count-consonants.pyπ given lines are locked β write your code in between
loading...