text: class Solution:
      def flipAndInvertImage(self, A):
          """
          :type A: List[List[int]]
          :rtype: List[List[int]]
          """
          return [[1 - row[~i] for i in range(len(row))] for row in A]