Text processing · 7 / 14 Exercise Easy

Count vowels

Objective

Create a Python program that counts how many times each vowel appears in a text.

Instructions

  • Read a text. It contains no accented letters.
  • Count the vowels a, e, i, o, u without distinguishing upper and lower case.
  • Show five lines, one per vowel and in that order, with the format vowel: times. Vowels that do not appear are shown with 0.
Input
Murcielago
Output
a: 1
e: 1
i: 1
o: 1
u: 1

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise