if i have three arrays the first one is A,B,C,D and the second one is E,F,G,H and the last one is I,J,K,L i want to use this three array and make an output like this :
AEI
BFJ
CGK
DHL
i try this code
import re
array1 = 'A','B','C','D'
array2 = 'E','F','G','H'
array3 = 'I','J','K','L'
arys = [array1,array2,array3]
for a,b,c,d in arys:
print a+b+c+d
it didnt work
how to make this work
tuple != array. What you are creating is a list of tuples. Tuples function very similarly to lists however they are immutable, which can be a subtle but important distinction.