The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
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', 'trap', 'its', 'a', 'rap', 'we', 'gotta', 'get', 'out', 'while', 'were', 'young']
print(vowelContent(wList))
{'half vowels': ['we', 'were'], 'mostly consonants': ['its', 'trap', 'rap', 'gotta', 'get', 'while', 'young'], 'mostly vowels': ['a', 'out']}
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll