CodeMIRAI
0 XP

Count the vowels

Easy +30 XP Solved

Read a line of text and print how many vowels (a e i o u, upper or lower case) it contains.

Input
Hello World
Expected output
3
Input
AEIOU
Expected output
5
Show a hint

Lower-case the text first so you only have to check five letters.

Show a solution
Python
Loading the editor…
Run the tests to check your solution.