Loading...
Loading...
Loading...
A writing tool counts vowels in a line. The vowels are a, e, i, o and u, in lower or upper case.
Read one line and print how many vowels it has.
Example
Input
Mentor Nxt
Output
2
The vowels are e and o.
Try the problem first. Open one hint at a time.
Walk over the characters with a for loop and keep a counter.
Make the text lower case first, then test each character with in "aeiou".
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor