Kombiniere Liste1 und Liste2
list1 = ['1', '2', '3'] list2 = ['hello', 'world'] result = [None]*(len(list1)+len(list2)) result[::2] = list1 result[1::2] = list2 print(result)#['1', 'hello', '2', 'world', '3']
Recommended Posts