Vowel Counter
Easy · 30 XPCount the vowels (a, e, i, o, u) in the string "programming in python is productive" and print the count.
Target output
10
Blank · autosaved
PYvowel-counter.py
sum(1 for ch in text if ch in "aeiou")
text = "programming in python is productive" print(sum(1 for ch in text if ch in "aeiou"))
Run your code to check it…