Home / Expert Answers / Computer Science / python-check-if-word-is-between-cree-vowels-3-is-between-vowels-5-pa729

(Solved): Python: Check if word is between cree vowels 3 is_between_vowels ()\( :[5 ...



Python: Check if word is between cree vowels

3 is_between_vowels ()\( :[5 \) points \( ] \)
- Input parameters:
- word: a string of exactly 3 characters
- Output paramete

- The program should validate that the word given has asly valid Cree lettern. If sat the program shatald diaplay an errat me???????

3 is_between_vowels ()\( :[5 \) points \( ] \) - Input parameters: - word: a string of exactly 3 characters - Output parameter: - a boolean indicating if the string is surrounded by two vowels in the CREE_VOWELS list. - Description: The function will check if the character at the first index and last index are both vowels. To do so, the function will use the provided global list CREE_VOWELS. You may use the keyword in for this. - Note: We will suppose that the input word will always have only three characters - Examples: - is_between_vowels('afi') will return True since the letter 'f' is surrounded by two vowels - is_between_vowels('afr') will return False - is_between_vowels('aoe') will return True - is_between_vowels('gfi') will return False - The program should validate that the word given has asly valid Cree lettern. If sat the program shatald diaplay an errat mesage, - You have to use mainly loops to traverne a string of a list. - To simplify the assignment, we won't eansider the prosunciation of bong vowels that are lesed in Cree Sro such as a oe aa of I or ii. Also for simplicity, other elements in the prosess of geserating the promusciation might be slightly changed, - Do not use methads or functions that we did not caver in dass, do not use dictionaries. In general, you bave to use loops to traverse a list or a string, - When testing your program, do nat focus only an testing Cree words in but focus if the letter combination is replaced by its corresponding pronasciation. For example: for the string ahohah, the pronunciation shauld be coo; the string 'apa' will be pronounced uhdwh. Provided listst You are provided with differens lists that will help you for the assignments such as a lists of lettens and their corresponding pronunciation: For example, for vowels with gidede, you are given a list named aee that if we have the combination 'ah' written it will be pronounced 'uh' The provided lists are: - a list of invalid betera bot used in Croe: - a list af Cree vowels: CREE,VDUELS = ['a', '1', 'o', 'a' \( ] \) - a list of special consonant and its carresponding phonetic (in case those are located between vowels): SPECIAL,_CDUEDNAUT \( =[ \) ' \( \mathbf{x} \) ', 'P', 't ' \( ] \) SPECIAL_CDMEONAMT_PHONEIIC \( =\left[{ }^{\prime} g^{\prime}\right. \), b \( \left.^{\prime},{ }^{\prime} d^{\prime}\right] \) - a list of vowels with glides and its corresponding phonetie: VDdEe,_CLIDE= ['ah', 'ih', 'oh', '1w", 'ay', '1y'] VDdEL_CLtDE.PHanETIC = [' wh', 'ee', '0', 'o', '1', ,ee'] - a list of other letters and its corresponding phonetie: 0THER.LETTEA = ['c', 'a'] QTHER_LETTERLPHCSETIC = ['ta', 'ah']


We have an Answer from Expert

View Expert Answer

Expert Answer


Provide cree_vowels are: CREE_VOWELS = ['a','e','i','o'
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe