[Solved] Use the method is_vowel
[ad_1] You can use char in “aeiouAEIOU” to determine if a character is a vowel, and use a list comprehension to produce a list containing only vowels, and find the number of vowels in the input string by finding the length of this list. string=raw_input() numOfVowels=len([char for char in string if char in “aeiouAEIOU”]) print(numOfVowels) … Read more