Q:

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

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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('w3resource');

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now