def get_valid_entries(board, row, col):
    """Checks valid entries for given cell in sudoku

    params : board : list (sudoku 9 X 9)

    : row : int

    : col : int

    returns : list (list of valid entries)
    """
    used_entries = [0] * 10
    used_entries[0] = 1

    block_row = row // 3
    block_col = col // 3

    # Row and Column
    for m in range(9):
        used_entries[board[m][col]] = 1
        used_entries[board[row][m]] = 1

    # Square
    for m in range(3):
        for n in range(3):
            used_entries[board[m + block_row * 3][n + block_col * 3]] = 1

    valid_entries = [i for i in range(1, 10) if used_entries[i] == 0]
    return valid_entries