Hi. I am trying to do something trivial, and I feel there should be an easy solution. But I am not finding it. Here is the problem:
There are two lists that I receive from API:
list_1 = [“John”, “Tom”, “Nicole”];
list_2 = [“Smith”, “Cruze”, “Kidman”];
I am trying to merge these two lists element-wise on the fly to produce the following list. I will feed the result to the next element which expects a single list of full names:
result_list = [“John Smith”, “Tom Cruze”, “Nicole Kidman”]
Is there any built-in, simple method to merge lists on the fly element-wise?
Thank you in advance!