Question: Python help please a. Create a file called YOUR_NAME_GetWords.py i. All the following functions must contain a description at the top of the function with

 Python help please a. Create a file called "YOUR_NAME_GetWords.py" i. Allthe following functions must contain a description at the top of the

Python help please

a. Create a file called "YOUR_NAME_GetWords.py" i. All the following functions must contain a description at the top of the function with a description of what the function does, input data type, and output data type (example below). ii. Functions can use regular expressions or other string functions. def get_most_common_end_letter(input_string): Get the most common end letter for the words in a string param: input_string: str returns: word_list: list[str] n"H iii. Write a function called "get_most_common_end_letter" 1. Input: String 2. Output: Returns the most common ending letter for the words in the string iv. Write a function called "get_words_ending_in_s" 1. Input: String 2. Output: A list of the words ending in " s " 3. HINT: Using regex the \b will be helpful. v. Write a function called "get_words_ending_in_ing" 1. Input String 2. Output: A list of the words ending in "ing" 3. HINT: Using regex the \b will be helpful. vi. Write a function called "get_words_with_ss" 1. Input: String 2. Output: A list of words that contain "ss" b. Create a file called "YOUR_NAME_GetWords_test.py" i. Use the unittest module to write multiple test cases to test each of the functions written in "YOUR_NAME_GetWords.py" ii. There needs to be at least one test (assert statement) for each function. iii. For simplicity, assume that the input data is a string and contains no digits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres how you can implement the Python script and test cases according to your requirements File YOURNAMEGetWordspy python import re from collections ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!