Write a python function to count number of vowels in a string


Topic: Write a python function to count number of vowels in a string

Solution

def count_vowels(text):
    v = set('aeiou')
    for i in v:
        print(f'\n {i} occurs {text.count(i)} times')



List all Python Programs