AdBlock Detected!

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

Computer Neek

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 not in particular order