array = [[1, 2], [3, 4]] flatArray = [element for element in innerArray for innerArray in array] # [1, 2, 3, 4]