Question: Suppose you are given two lists, with their elements at the corresponding position representing the first name and the last name of the same person:
Suppose you are given two lists, with their elements at the corresponding position representing the first name and the last name of the same person:
python
firstnames Alice 'Bob', 'Carol', 'David'
lastnames Alligator 'Bear', 'Chimpanzee', 'Deer'
Write a lambda expression, name it concatnames and call it with the two lists above to form a list of full names. The expected output is as follows:
python
Alice Alligator', 'Bob Bear', 'Carol Chimpanzee', 'David Deer'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
