subject

Write a function named add_surname that takes as a parameter a list of first names. It should use a list comprehension to return a list that contains only those names that start with a "K", but with the surname "Kardashian" added to each one, with a space between the first and last names. You may assume that all names in the list begin with a capital letter. For example, if the original list is: ["Kiki", "Krystal", "Pavel", "MaryKay", "Annie", "Koala"]
Then the list that is returned should be:

['Kiki Kardashian', 'Krystal Kardashian', 'Koala Kardashian']

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
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, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
You know the right answer?
Write a function named add_surname that takes as a parameter a list of first names. It should use a...
Questions
Questions on the website: 13722363