Python3 Solution | Easy to understand
\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        for i in range(len(image)):\n            image[i] = ima
```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        for i in range(len(image)):\n            image[i] = image[i][::-1]\n            for j in range(len(image[i])):\n                if image[i][j] == 0:\n                    image[i][j] = 1\n                else:\n                    image[i][j] = 0\n        return image\n```
['Python', 'Python3']