sparselifegrid()creates new infinite-sized game grid all cells in the grid are initially set to dead minrange()returns -tuple (minrowmincolthat contains the minimum row index and the minimum column index that is currently occupied by live cell maxrange()returns -tuple (maxrowmaxcolthat contains the maximum row index and the maximum column index that is currently occupied by live cell configurecoordlist )configures the grid for evolving the first generation the coordlist argument is sequence of -tuples with each tuple representing the coordinates (rcof the cells to be set as alive all remaining cells are cleared or set to dead clearcellrowcol )clears the individual cell (rowcoland sets it to dead the cell indices must be within the valid range of the grid setcellrowcol )sets the indicated cell (rowcolto be alive the cell indices must be within the valid range of the grid islivecellrow,col )returns boolean value indicating if the given cell (rowcolcontains live organism the cell indices must be within the valid range of the grid numliveneighborsrowcol )returns the number of live neighbors for the given cell (rowcolthe neighbors of cell include all of the cells immediately surrounding it in all directions for the cells along the border of the gridthe neighbors that fall outside the grid are assumed to be dead the cell indices must be within the valid range of the grid implement new version of the gameoflife py program to use your sparselifegrid class from the previous question repeat exercise from but use your new version of the gameoflife py program from the previous question the digital grayscale image was introduced in programming project and an abstract data type was defined and implemented for storing grayscale images color digital image is also two-dimensional raster imagebut unlike the grayscale imagethe pixels of color image store data representing colors instead of single grayscale value there are different ways to specify colorbut one of the most common is with the use of the discrete rgb color space individual colors are specified by three intensity values or components within the range [ ]one for each of the three primary colors that represent the amount of redgreenand blue light that must be added to produce the given color we can define the rgbcolor class for use in storing single color in the discrete rgb color space