Python Simple Short solution
```\nclass Solution:\n    def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:\n        for i in range(len(A)):\n            A[i] = list(map(lam
```\nclass Solution:\n    def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:\n        for i in range(len(A)):\n            A[i] = list(map(lambda x: x^1,(A[i])))[::-1]\n        \n        return A
['Python', 'Python3']