Problem 109403 · easy · Level 01 Prerequisites & Setup

Vowel Counter

strings · iteration · counting

Return how many vowels (a, e, i, o, u, in either case) appear in the string s. The letter y does not count.

Examples

Input:  s = "Programming"
Output: 3

Input:  s = "RHYTHM"
Output: 0

Constraints

  • 0 <= len(s) <= 5000
  • s may contain letters, digits, spaces and punctuation

Goals

  • Loop over each character of a string
  • Test membership with `in`
  • Ignore letter case
Starting Python…