key-value pair

An entry that links a key, used to look something up, to the value stored for it, such as a user name mapped to a user record.

In more detail

Dictionaries and hash tables store key-value pairs and find a value by its key. Keys must be unique within one table and, in Python, hashable. The value can be anything, including another container.

Related terms

Taught in

References

Certification courses