livepython.net

86. Python Program to Count the Vowels in a Word

MediumSum and count

Overview

A counter that only goes up when an if inside the loop is True.

Problem Statement

Read a word in lowercase letters and print how many vowels (a, e, i, o, u) it has. For example, for education:

Vowels: 5

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

education

Output

The output for that example:

Vowels: 5

The tests try 4 different inputs.

Learn this firstChapter 10 · Sum and Count with a Python for Loop
solution.py
# write your code here

EXPECTED OUTPUT

1Vowels: 5

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.