m = [[1,2,3], [4,5,6],[7,8,9]] v = [e for r in m for e in r] print(v) output: [1, 2, 3, 4, 5, 6, 7, 8, 9]