root@coding-prodigies:~#
← All challenges

Count the vowels

How many a, e, i, o, u's are in a sentence?

🟢 EasyDifficulty

The challenge

Count how many vowels (a, e, i, o, u -- case-insensitive) appear in "The quick brown fox jumps over the lazy dog", and print the count.

Output

  
🧠 Need a hint? (Python)

Lowercase the whole string first (text.lower()) so you only need to check for 5 characters instead of 10, then loop and count matches against "aeiou".

🚀

Like solving these?

Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.

Create a free account

More challenges