Write a Python program to count and display the vowels of a given text.


Topic: Write a Python program to count and display the vowels of a given text.

Solution

def vowel(text):
    vowels = "aeiuoAEIOU"
    main_list = [letter for letter in text if letter in vowels]
    return len(main_list), main_list



List all Python Programs