liveBook · Manning

Name-value pair

A name-value pair is a data association in which an identifying name or key corresponds to a value.

How 11 Manning books explain it

Python Workout: 50 ten-minute exercises

How it is used
Uses name-value pairs to organize records, related data, configuration, lookups, and accumulated results in Python dictionaries.
How deep it goes
Explains keys, values, dictionary lookup, and hashing, but defers detailed implementation changes and internals.
Examples
Demonstrates menus, word-count dictionaries, configuration files, city populations, and transformed name-hobby data.
What you can do after
Apply it via Python dictionaries and comprehensions to store, retrieve, transform, and accumulate associated data.

Read how Python Workout: 50 ten-minute exercises explains name-value pair →

Python Workout, Second Edition

A key-value pair is a two-part dictionary entry consisting of a key and its associated value.

How it is used
Uses name–value pairs to model records, configuration, accumulated data, function options, and transformed collections.
How deep it goes
Explains dictionary storage, lookup, uniqueness, hashing, and comprehensions, while deferring detailed Python 3.6 implementation changes.
Examples
Uses configuration files, city rainfall totals, XML attributes, and city-population transformations as concrete pair-based exercises.
What you can do after
Apply via Python dictionaries, dict.get, **kwargs, and dictionary comprehensions to create, update, and transform associations.

Read how Python Workout, Second Edition explains name-value pair →

The Well-Grounded Rubyist, Fourth Edition

A key/value pair, or hash entry, consists of a key and its associated value stored in a hash.

How it is used
Organizes named data for direct lookup, iteration, filtering, and transformation within Ruby hashes.
How deep it goes
Explains creation, retrieval, uniqueness, insertion order, iteration representation, filtering, inversion, and mutation edge cases.
Examples
Uses state abbreviations, indexed gemstone pairs, Boolean hash queries, nested contacts, and filtering or inversion examples.
What you can do after
Apply Ruby hash syntax to store, retrieve, iterate, filter, replace, and transform named data.

Read how The Well-Grounded Rubyist, Fourth Edition explains name-value pair →

Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A JSON key-value pair associates a quoted property name with a JSON value using a colon separator.

How it is used
Represents structured application data for storage, transmission, and REST API communication.
How deep it goes
Defines pair syntax, permitted values, nesting, ordering, whitespace, and common invalid forms without requiring full RFC detail.
Examples
Uses interface data, nested device configuration, and malformed objects to test pair interpretation and punctuation.
What you can do after
Evaluate JSON objects, identify each name-value association, and diagnose missing, misplaced, or invalid separators.

Read how Acing the CCNA Exam: Volume 2 Advanced Networking and Security explains name-value pair →

Building Web APIs with ASP.NET Core

A key/value pair is a data representation that associates a named key with its corresponding value.

How it is used
Uses name–value pairs to model flexible NoSQL documents and attach custom metadata to generated API schemas.
How deep it goes
Explains the representation and implements reusable attributes plus schema filtering, stopping short of database query mechanics.
Examples
Demonstrates repeated x-test extensions on UserName and a custom extension on a board-game endpoint parameter.
What you can do after
Build custom OpenAPI metadata by defining repeatable attributes and registering a schema filter with SwaggerGen.

Read how Building Web APIs with ASP.NET Core explains name-value pair →

Get Programming: Learn to code with Python

How it is used
Maps one object to another so a key can be used to look up its associated value.
How deep it goes
Defines keys and values, then demonstrates creating, adding, replacing, and removing dictionary entries.
Examples
Uses grocery quantities, animal leg counts, and household contents as dictionary entries.
What you can do after
Operate Python dictionaries by adding, replacing, and removing key-value pairs.

Read how Get Programming: Learn to code with Python explains name-value pair →

Object-Oriented Software Design in C++

How it is used
Uses associations to represent variable book attributes and support flexible catalogue searches.
How deep it goes
Explains map key and value typing, then implements heterogeneous values with variant and pair matching.
Examples
Demonstrates book attribute maps, typed keys, catalogue queries, and matching results for fiction and regional cookbooks.
What you can do after
Build flexible C++ attribute storage and search using map, enum class, and variant.

Read how Object-Oriented Software Design in C++ explains name-value pair →

Everyday Data Visualization

A key-value pair is a named data association in which a key identifies and a value supplies the associated data.

How it is used
Organizes nested data and supplies compact inputs for visualizations such as one-bar-per-fruit charts.
How deep it goes
Defines syntax, key and value types, nesting, and alternative organizations, but does not detail programmatic generation.
Examples
Uses weekday schedules, fruit taste scores, indexed fruit records, and a titled nested fruit dataset.
What you can do after
Apply via JSON by structuring named values, nesting related records, and preparing simple visualization data.

Read how Everyday Data Visualization explains name-value pair →

Rust in Action: Systems programming concepts and techniques

A key-value pair collection is an abstract data structure that associates each key with a corresponding value.

How it is used
Uses key-value collections for lookup, ordered selection, and durable file records.
How deep it goes
Explains terminology, hashing, lookup behavior, implementation choice, ordered iteration, range queries, and serialized record parsing.
Examples
Demonstrates VOC investment mappings, ordered output, range queries, hash calculation, and Bitcask record parsing.
What you can do after
Apply it via Rust HashMap or BTreeMap, choosing lookup or ordering behavior and interpreting serialized records.

Read how Rust in Action: Systems programming concepts and techniques explains name-value pair →

MongoDB 8.0 in Action, Third Edition

A key-value pair is an association between a named key and the value stored under that key.

How it is used
Organizes MongoDB document data so applications can represent, query, update, and retrieve structured information.
How deep it goes
Defines field-value associations and demonstrates simple, array, and nested values, without descending into BSON encoding internals.
Examples
Uses book documents and a student academic record containing identifiers, scalar fields, arrays, and nested assessment objects.
What you can do after
Apply name-value pairs when reading MongoDB documents and forming queries, updates, and deletions by field values.

Read how MongoDB 8.0 in Action, Third Edition explains name-value pair →

Grokking Concurrency

A key-value pair is a data representation consisting of a key associated with a corresponding value.

How it is used
Uses pairs to represent intermediate word-count results between map and reduce phases.
How deep it goes
Defines keys and values, demonstrates aggregation, and stops short of broader data-structure implementation details.
Examples
Uses word-count outputs such as ("the", 1), repeated keys, and the aggregated result ("the", 2).
What you can do after
Build it from scratch by emitting word-count pairs and aggregating values for each unique word.

Read how Grokking Concurrency explains name-value pair →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.