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"
print(len([letter for letter in text if letter in vowels]))
print([letter for letter in text if letter in vowels])
vowel('zekelabs')



List all Python Programs