I have no problem for understanding this:
a = [1,2,3,4] b = [x for x in a]
I thought that was all, but then I found this snippet:
b = [x for xs in a for x in xs] is similar to following nested loop.
b = [x for xs in a for x in xs]
b = [] for xs in a: for x in xs: b.append(x)