Python 1 line
\nclass Solution(object):\n    def flipAndInvertImage(self, A):\n        """\n        :type A: List[List[int]]\n        :rtype: List[List[int]]\n        """\n  
```\nclass Solution(object):\n    def flipAndInvertImage(self, A):\n        """\n        :type A: List[List[int]]\n        :rtype: List[List[int]]\n        """\n        \n        return [[1-i for i in row[::-1]] for row in A]\n```
[]