# 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...