>>> a = [[6, 5, 4], [3, 2, 1]] # 2d array >>> print([i[::-1] for i in a[::-1]]) # reverse each element in the arrays and the arrays themselves # output: [(1, 2, 3), (4, 5, 6)]