Say I have a two lists:
l1 = ['a','b','c']
l2 = ['d','e','f']
How do I merge the elements with other list elements?
output: ['a_d', 'b_e', 'c_f']
Say I have a two lists:
l1 = ['a','b','c']
l2 = ['d','e','f']
How do I merge the elements with other list elements?
output: ['a_d', 'b_e', 'c_f']
l1 = ['a','b','c']
l2 = ['d','e','f']print([f'{x}_{y}' for x, y in zip(l1, l2)])['a_d', 'b_e', 'c_f']