Count the Vowels — Solution & Editorial
Lowercase the string and count membership in {a,e,i,o,u}. O(N) single pass. Python: sum(c in "aeiou" for c in input().lower()).
Lowercase the string and count membership in {a,e,i,o,u}. O(N) single pass. Python: sum(c in "aeiou" for c in input().lower()).