I was stucked in 2D list something like ((A,B),(C,D),(E,F),(G,H))
to convert it to 1D [A,B,C,D,E,F,G,H]
.
I have searched and found the below loop which worked.
a = ((A,B),(C,D),(E,F),(G,H))
b = [i for j in a for i in j]
But I am not able to understand this loop. Please help me in understanding the same.