Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
def count_vowels(s): count = 0 vowels = set("aeiouAEIOU") for ch in s: if ch in vowels: count = count + 1 return count s = "Python Programming" print(count_vowels(s)) ''' run: 4 '''