Python verschmelzen zwei Listen abwechselnd
a = [1, 3, 5]
b = [2, 4, 6]
c = []
for x, y in zip(a, b):
c += [x, y]
print(c)
# [1, 2, 3, 4, 5, 6]
Programer boi
a = [1, 3, 5]
b = [2, 4, 6]
c = []
for x, y in zip(a, b):
c += [x, y]
print(c)
# [1, 2, 3, 4, 5, 6]