(grid)
return list(zip(*grid[::-1]))
Rotates a grid 90 degrees
    Args:
        grid (list): a 2d list representing a grid
    Returns:
        grid (list): rotated copy of a 2d grid
Rotates a grid 90 degrees
    Args:
        grid (list): a 2d list representing a grid
    Returns:
        grid (list): rotated copy of a 2d grid
Rotates a grid 90 degrees Args : grid ( list ) : a 2d list representing a grid Returns : grid ( list ) : rotated copy of a 2d grid
def rotate90(grid):
    """Rotates a grid 90 degrees
    Args:
        grid (list): a 2d list representing a grid
    Returns:
        grid (list): rotated copy of a 2d grid
    """
    return list(zip(*grid[::-1]))
def rotate90 ( grid ) : return list ( zip ( * grid [ : : - 1 ] ) )