def get_size(self):

        return self.width, self.height
Retrieves the size of the grid as a tuple (width, height).
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/grid.py/Grid.get_size