Question: PYTHON Problem 1a. Write a function named hasFinalLetter that takes two parameters 1. strList, a list of non-empty strings letters, a string of upper and/or
Problem 1a. Write a function named hasFinalLetter that takes two parameters 1. strList, a list of non-empty strings letters, a string of upper and/or lower case letters 2. The function hasFinalLetter should create and return a list of all the strings in strList that end with a letter in letters. Problem 1b. Create three test cases, each consisting of a list of non-empty strings and a string of upper and/or lower case letters, for your function in Problem 1a. One of these tests should return the empty list. For each test case write two assignment statements and a function call that pass the test arguments to your function. Problem 2a. Write a function named isDivisible that takes two parameters 1. 2. maxlnt, an integer twolnts, a tuple of two integers The function isDivisible should create and return a list of all the int's in the range from 0 to maxint (not including maxint) that are divisible of both int's in twolnts Problem 2b. Create three test cases, each consisting of a value for maxlnt and a value for twolnts, for your function in Problem 2a. One of these tests should return the empty list. For each test case write two assignment statements and a function call that pass the test arguments to your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
