I would like to know is there an "easy" way to create two matching arrays inserting some dummy missing value in both arrays so they remain same size and indexes that are the same in both arrays remain the same, so for example:
["A", "B", "C", "D", "E", "F"] and ["B", "C", "E"]
Would be
["A", "B", "C", "D", "E", "F"] and ["N/A", "B", "C", "N/A", "E", "N/A"]
Thanks in advance :-)
a = [1,2,3,4,5] b = [1,3,5] c = [] for el in a: if el in b: c.append (el) else: c.append (0) print (c)