Oct-03-2024, 09:53 AM
Hi,
how merge the first item of one list with the first item of another list.
first list:
D,B,C,
second list
5,2,7,
result should be
D5,B2,C7
I tried with the follow code, but the output are new group of list with two items.
list1 = IN[0]
list2 = IN[1]
merged_first_items = list(zip(list1, list2))
OUT = (merged_first_items)
Sorry, I am a beginner, my research on the web was not successful.
Best regards
how merge the first item of one list with the first item of another list.
first list:
D,B,C,
second list
5,2,7,
result should be
D5,B2,C7
I tried with the follow code, but the output are new group of list with two items.
list1 = IN[0]
list2 = IN[1]
merged_first_items = list(zip(list1, list2))
OUT = (merged_first_items)
Sorry, I am a beginner, my research on the web was not successful.
Best regards