Count the Vowels
Programs with input · Beginner · about 5 min
Read a word or a sentence and print how many vowels it has, as Vowels: 3. The vowels are a, e, i, o and u, in capitals or small letters. The letter y does not count.
The prompts inside input() are not checked, only what you print.
Example
You type:
ElephantThe program prints:
Vowels: 3
text = input("Type a word or a sentence: ")
# Count the vowels and print the count
The solution opens after your first Check.