Difference between revisions of "Dictionaries"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Previous definition incorrect and nothing to do with the dictionary data structure)
(Expanded definition slightly....)
Line 1: Line 1:
 +
{{Need_Expanding}}
 
==Definition==
 
==Definition==
Stores a series of Key / Value pairs
+
A dictionary stores a series of Key / Value pairs. The values are aligned with the keys so calling for a key will return the value.
 +
This is very useful if you have a lot of values that you need to weed though to get a value or if you constantly change a value in a line of values.

Revision as of 21:23, 19 March 2017

This section needs expansion.
You can help by adding to it.

Definition

A dictionary stores a series of Key / Value pairs. The values are aligned with the keys so calling for a key will return the value. This is very useful if you have a lot of values that you need to weed though to get a value or if you constantly change a value in a line of values.