Need for loop for for loops xD
python\nclass Solution:\n    def largestLocal(self, grid: List[List[int]]) -> List[List[int]]:\n        n = len(grid)\n\n        res = [([0] * (n - 2)) for _ in
```python\nclass Solution:\n    def largestLocal(self, grid: List[List[int]]) -> List[List[int]]:\n        n = len(grid)\n\n        res = [([0] * (n - 2)) for _ in range(n - 2)]\n\n        for x in range(n - 2):\n            for y in range(n - 2):\n                local_max = 0\n                for i in range(x, x + 3):\n                    for j in range(y, y + 3):\n                        local_max = max(local_max, grid[i][j])\n                res[x][y] = local_max\n\n        return res\n\n```
['Python3']