subject

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.

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computerโ€™s clock. on all weekdays (monday through friday) that are not holidays, your program should output โ€œget up! โ€ on all other days (weekends and holidays), your program should output โ€œsleep in.โ€ the three holidays that your program must check for are january 1 (new yearโ€™s day), july 4 (u.s. independence day), and december 25 (christmas). you donโ€™t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
Answers: 1
You know the right answer?
Write a function named hasFinalLetter that takes two parameters 1.strList, a list of non-empty str...
Questions
question
Mathematics, 05.09.2020 04:01
Questions on the website: 13722361