Menu

[Solved]Write Function Named Vowelcontent Following Input Output Input List Parameter Wordlist Cha Q37031763

PYTHON LANGUAGE
Write a function named vowelContent() with the following input and output: Input: a list parameter, wordList. The characters

Write a function named vowelContent() with the following input and output: Input: a list parameter, wordList. The characters in the words in wordList are all lower case letters. Return: a dictionary consisting of three key/value pairs. The keys are the strings ‘mostly vowels’, ‘mostly consonants’ and ‘half vowels’. The value of each keys, respectively, is a list of words (without duplicates) consisting of, respectively, words in wordList that are more than half vowels, less than half vowels, and exactly half vowels. Vowels are the letters ‘a’, ‘e’, ‘i’, ‘o’, and u For example, the following would be correct output. wList = [‘ its’, ‘a’, ‘death’, ‘trap’, ‘its’, ‘a’, gotta’,gout’, ‘while, ‘were ‘young’ ‘suicide’, ‘rap’, we’, print (vowelContent(wList)) ‘half vowels’ [‘we, ‘were’], ‘mostly consonants’ [‘its’, ‘death’, ‘trap’, ‘rap’, ‘gotta’, ‘get’, ‘while’, ‘young’, ‘mostly vowels’: [‘a’, ‘suicide’, ‘out’1 Show transcribed image text Write a function named vowelContent() with the following input and output: Input: a list parameter, wordList. The characters in the words in wordList are all lower case letters. Return: a dictionary consisting of three key/value pairs. The keys are the strings ‘mostly vowels’, ‘mostly consonants’ and ‘half vowels’. The value of each keys, respectively, is a list of words (without duplicates) consisting of, respectively, words in wordList that are more than half vowels, less than half vowels, and exactly half vowels. Vowels are the letters ‘a’, ‘e’, ‘i’, ‘o’, and u For example, the following would be correct output. wList = [‘ its’, ‘a’, ‘death’, ‘trap’, ‘its’, ‘a’, gotta’,gout’, ‘while, ‘were ‘young’ ‘suicide’, ‘rap’, we’, print (vowelContent(wList)) ‘half vowels’ [‘we, ‘were’], ‘mostly consonants’ [‘its’, ‘death’, ‘trap’, ‘rap’, ‘gotta’, ‘get’, ‘while’, ‘young’, ‘mostly vowels’: [‘a’, ‘suicide’, ‘out’1

Expert Answer


Answer to Write a function named vowelContent() with the following input and output: Input: a list parameter, wordList. The charac… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *