# Key-Value Pair

*noun*

say it: **“KEE VAL-yoo PAIR”** **/ki ˈvæljuː pɛr/**

One entry in a dictionary or hash table: the key you look it up by, and the value stored under it.

## What is a **key-value pair**?

A **key-value pair** is one entry in a dictionary: the **key** is what you look it up by (a member's name) and the **value** is what's stored under it (their number of visits). Keys are unique; setting a key that's already there replaces its value.

## In a sentence

- “Each **key-value pair** in the gym's dictionary is a member's name and how many times they came this month.”

Level: Apprentice · [More Data Structures terms at this level](https://www.ask-codey.com/glossary?category=data-structures&level=2)

Updated: November 9, 2026

## In other subjects

- [Key-Value Pair in C#](https://www.ask-codey.com/glossary/key-value-pair-c-sharp)
- [Key-Value Pair in JavaScript](https://www.ask-codey.com/glossary/key-value-pair-javascript)
- [Key-Value Pair in Python](https://www.ask-codey.com/glossary/key-value-pair)
- [Key-Value Pair in Unix](https://www.ask-codey.com/glossary/key-value-pair-unix)

Source: https://www.ask-codey.com/glossary/key-value-pair-data-structures
