A = ['a', 'p', 'p', 'l', 'e'] B = [1,2,3,4,5] C =[] for i in range(len(A)): C.append(A[i]) C.append(B[i]) print("res:", C)
Standard input is empty
res: ['a', 1, 'p', 2, 'p', 3, 'l', 4, 'e', 5]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!