Coding Challenge: Vowel Count

Learn how to take a string as input and then returns the number of vowels that string contains.

Problem statement

Write a program that returns the total number of vowels in a word.

Input

vowels("fly");
vowels("beautiful");

Expected output

1
5

Coding exercise

Get hands-on with 1400+ tech skills courses.