Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve in python a. Write a function named hasFinalLetter that takes two parameters 1. strList a list of non-empty strings 2. letters, a string of

solve in python
image text in transcribed
a. Write a function named hasFinalLetter that takes two parameters 1. strList a list of non-empty strings 2. letters, a string of upper and/or lower case letters The function hasFinalLetter should create and return a list of all the strings in strList that end with a letter in letters. b. Create three test cases, each consisting of a list of non-empty strings and a string of upper and/or lower case letters, for yor function in Problem 1a. One of these tests should return the empty list. For each test case rite two assignment statements and a function call that pass the test arguments to your function. a. Write a function named isDivisible that takes two parameters 1. maxint, an integer 2. wolnts, a tuple of two integers The function is Divisible should create and return a list of all the ints in the range from 1 to maxlnt (not including maxini) that are divisible of both ints in twoints. b. Create three test cases, each consisting of a value for maxlntand a value for twoints, 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

9.4 Explain the roles in career development.

Answered: 1 week ago

Question

5. What information would the team members need?

Answered: 1 week ago

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago