Count Vowels

Beginner

Count Vowels

Hey there, little coder! 🌟 Are you ready for a fun challenge? Let's dive into the world of words and find out how many vowels we have in each word! πŸ•΅οΈβ€β™‚οΈπŸŒ€

Vowels are the letters A, E, I, O, U. In this challenge, you have to write a function that receives a word and returns the number of vowels in it.

For example:

count_vowels("hello")

This should return 2 because there are two vowels in "hello": e and o.

Here are some more examples:

count_vowels("apple") # returns 2 because 'a' and 'e' are vowels count_vowels("sky") # returns 0 because no vowels here count_vowels("aeiou") # returns 5 because it's ALL vowels!

Are you up for this exciting adventure? Let's count those vowels! πŸŽ‰

Geek
Inputs

Arg 1:

"hello"
Expected Output
2
Actual Output
Count Vowels [beginner] | Coding for Kids