Ad Block Detected!

Our website is made possible by displaying ads to our visitors. Please support us by whitelisting our website or allowing necessary trackers.

What is a dictionary

A dictionary is a data type that stores unordered data. Each data has a unique key.

How does a dictionary work

You call the key and the value is returned. In the example below, the names are the keys and the values are the corresponding numbers.

  number = {“Steve” : 07434575432, “Julian”: 08321453533, “Sarah” : 03210548576}; 

The pairs are in no particular order