Question: coding problem with pyhton from typing import List # BE CAREFUL OF SCOPE WHEN WORKING ON THESE PROBLEMS list_of_names: List[str] = [ alex, amanda, aaron,

coding problem with pyhton

coding problem with pyhton from typing import List # BE CAREFUL OF

from typing import List # BE CAREFUL OF SCOPE WHEN WORKING ON THESE PROBLEMS list_of_names: List[str] = [ "alex", "amanda", "aaron", "charlie" "vision", "wanda", "tommy" "sophie", # PROBLEM 1 - 10 pts # Complete the function below to filter the list_of_names defined on line 1. # This function will filter the list based on the input_str. If the name starts with # the input string the result will be included return statement of the function. def filter_list_of_names(input_str: str) -> List[str]: # PROBLEM 2 - 5 pts # Complete a function below. # Remove the name "vision" from the list on line 1. Return the remaining items of the list def remove_vision (input_str: str = None) -> List[str]: # PROBLEM 3 - 10 pts # Complete a function below. # Return the last matching element of list_of_names that ends with the input_str. #example if the input_str = 'X' the output would be 'alex' # example if the input_str = 'a' the output would be 'wanda' def return_last_match(input_str: str) -> str

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!