A2=[' m3_no1 ', 'm3_no2]
Have list of a1 and a2, what command can be merged into a3 list look like?
A3=[[' store_no1 ', 'm3_no1], [' store_no2', 'm3_no2]]
CodePudding user response:
A3=(a1, a2)CodePudding user response:
a1=[' store_no1 ', 'store_no2]
A2=[' m3_no1 ', 'm3_no2]
Print (list (map (list, zip (a1, a2))))
# [[' store_no1 ', 'm3_no1], [' store_no2', 'm3_no2]]
CodePudding user response:
A1=[' store_no1 ', 'store_no2]
A2=[' m3_no1 ', 'm3_no2]
A3=[]
For x, y in the zip (a1, a2) :
A3. Append ((x, y))
Print (a3)
CodePudding user response: