I'm a pretty sure that this is a silly question, but I can't wrap my head around what is wrong.
I have a list of lists and I'd like to use list comprehension to create a single list holding all elements (like a flattened list).
What I have tried so far:
lol = [[0,1,2,3], [4,5,6,7], [8,9,10,11]]
fl = [el for el in al for al in lol]
But then I get NameError: name 'al' is not defined
.
Is this just not doable in list-comprehension or am I doing something wrong?