0
How to concatenate two 2D arrays in parallel by returning an array 1D, example:
ARRAYS/LISTS
lista 1 = [['a'],['b'],['c']]
lista 2 = [['A'],['B'],['C']]
GOAL:
lista 3 = ['a:A','b:B','c:C']
Trying:
concat_array = [itm + ':' if not itm.endswith(':') else itm for itm in lista1 + lista2]
that, list 1 = [['a'],['b'],['c']], forgot to put simple quotes in the example
– Luis Henrique
Goal is to get a list like this: list 3 = ['a:A','b:B','c:C']
– Luis Henrique
changed the question...
– Luis Henrique
where list3 = list1 + ':' + Lista2
– Luis Henrique