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']
2.1m questions
2.1m answers
60 comments
57.0k users