import itertools


def co_oridinates(l):
    """
    # Returns a list of co-ordinates for slicing based on the value l. Used for resizing 
    grids which contain 3 x 3 geomtry or 9 square shapes within the grid in total

    Parameters:
    l (int):  Size of each square in grid to be re-sized

    Returns:
    list: List of indexes for the starting point of each square with in the shape
    """
    # Get the step size for each square ie the length of each square shape within the grid 
    step =int(l/3)
    lst = []
    # For each square loop through and get the starting row and col index for that square
    for i in range(0, l, step):
        lst.append(list([i, i+step]))
    
    # Get all combinations of lst with itself for all row and col slice combinations (9 in total)
    return list(itertools.product(lst, lst))